-1

What can "import java.io Console" allow me to do? I cannot figure out why you would set up a Console object.

Dylan Pham
  • 55
  • 1
  • 9
  • Possible duplicate with https://stackoverflow.com/questions/2369731/java-console-applications-is-system-out-still-the-way-to-go – sayboras Dec 30 '17 at 02:26
  • 1
    @Apolozeus No, It's not a duplicate with that. Because this is just questioning the `Console.printf()` properties and why it's there in the JRE Library. –  Dec 30 '17 at 02:41

1 Answers1

0

The class console will only work in the console. If you are not using the console(any other standard output other than console) you should use System.out.print.

And you have to create instance of Console but not for System.out.print

prsutar
  • 429
  • 2
  • 4
  • 17