i know how to do it with int, chara, and double. but how do i do it with String?? and do you know a better way to do it?? and how do i use the use code brackets??, untill i learn i will us the [ SHELL] ones becase it looks good
[SHELL]
private int intValue () throws IOException
{
int value;
BufferedReader input = new BufferedReader( new InputStreamReader( System.in) );
String inputStr;
inputStr = input.readLine();
StringTokenizer sTok = new StringTokenizer ( inputStr);
value = Integer.parseInt( sTok.nextToken() ) ;
return value;
}
[/SHELL]