File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
Programmer Certification (SCJP/OCPJP)
Joined: Feb 25, 2011
Feb 26, 2011 15:35:52
when we say something like this
Console c = System.console(); String u = c.readLine("%s", "username: ");
well what's with the formatting???
we use formatting when we are printing something to the output!
why are we formatting what we are reading and how come that's possible!!!
Joined: Jun 01, 2010
Feb 26, 2011 17:37:33
This version of Console.readLine() does not format what it is reading. It formats a user prompt and then returns what the user entered. This is explained in the documentation.
I agree. Here's the link:
subject: console problem
NPE from K&B example SCJP6
Having interesting Syntax problem
Help with Applet
sockets and printwriting
Reading a file and storing its contents into a String Array
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014