You can try out following code to take input from Keyboard:
import java.io.*;
class Input{
public static String getInput(){
String result ="";
try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
result = br.readLine();
}catch(Exception e){
System.out.println("Error Reading");
}
return (result);
}
}
This is static method on class Input
You can use it as :-
//Your code
String text=Input.getInput();
int i=Integer.parsenInt(Input.getInput());
--- // Your code
[ May 07, 2004: Message edited by: Kush Kush ]