Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #766
| From | markspace <-@.> |
|---|---|
| Newsgroups | comp.lang.java.help, alt.comp.lang.java, comp.sources.d |
| Subject | Re: Reading different types of console inputs in Java |
| Date | 2011-06-13 08:55 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <it5bsq$kj9$1@dont-email.me> (permalink) |
| References | <a21fdaba-668e-4bd8-84cf-5a3bf8857f7c@y30g2000yqb.googlegroups.com> |
Cross-posted to 3 groups.
On 6/12/2011 10:31 PM, Proud Japanese wrote: > Is this the best way to realize what I am trying to do, or is there a > simpler, less verbose way (similar to the ">>" streaming operator in C+ > +)? I think the Scanner class is simpler: <http://download.oracle.com/javase/tutorial/essential/io/scanning.html> Just be sure to use System.in instead of the BufferedReader/FileReader combo they're using to read console input. You might also want to check the docs for the Java Console class: <http://download.oracle.com/javase/6/docs/api/java/io/Console.html>
Back to comp.lang.java.help | Previous | Next — Previous in thread | Find similar
Reading different types of console inputs in Java Proud Japanese <hayato.fujimoto@yahoo.com> - 2011-06-12 22:31 -0700 Re: Reading different types of console inputs in Java Roedy Green <see_website@mindprod.com.invalid> - 2011-06-13 06:13 -0700 Re: Reading different types of console inputs in Java markspace <-@.> - 2011-06-13 08:55 -0700
csiph-web