A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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
Reading a file and storing its contents into a String Array
Help with Applet
Having interesting Syntax problem
sockets and printwriting
NPE from K&B example SCJP6
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014