Profile
Achievement
visudex's Recent SnippetsTagged class
- All /
« Prev 1 Next »
Ever got tired of writing System.out.print(); all the time when testing, well, to avoid this, just create a helper method that will narrow it down to print();
0
795
posted 14 years ago by visudex
This snippet will allow you to read user's input when they write in the console. This method uses the Scanner class, which is my favorite way of doing instead of using the Buffered Reader, with the Scanner, you can also read from a file.
0
830
posted 14 years ago by visudex