I want check all char one by one without use ENTER char. For example I put foobar.
and I check f, fo, foo, foob, fooba, foobar and foobar. and when I find a dot I exit program
Scanner input = new Scanner(System.in);
String phrase = null;
do{
mychar = input...???;
System.out.println(phrase);
} while(mychar!='.');
input.close();