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
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
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:
- it saves me about five hours per week
subject: console problem
Help with Applet
Reading a file and storing its contents into a String Array
sockets and printwriting
Having interesting Syntax problem
NPE from K&B example SCJP6
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013