Search found 2 matches

by Coalwater
Sat Sep 29, 2007 7:24 pm
Forum: Java
Topic: Whats the best way to get console input (Standard input)
Replies: 0
Views: 3042

Whats the best way to get console input (Standard input)

i want to know what is the best way to get input from standard input, i know there is a many who posted functions that they created to read a char and add it to array and then turn array to string but i never understood any one of them can any one please show me one and a simple explanation with it ...
by Coalwater
Wed Sep 26, 2007 3:35 pm
Forum: Java
Topic: Need Help Using Scanner
Replies: 3
Views: 3903

Need Help Using Scanner

i have a problem with Scanner (java.util.Scanner)
its in using Scanner.hasNext() while reading from console
the problem is that the program never stops and i get time limit exceed
cant i use hasNext() when the Scanner is scanner(System.in) ?

Thank you

Go to advanced search