I got your problem [BufferedReader br1 = new BufferedReader(new InputStreamReader(System.in))]. You visit the following url for better understanding to this.
You can also take data from the keyboard through command line.
int a = Integer.parseInt(args), int b = Integer.parseInt(args) and so on.]
Read more: [url = http://www.roseindia.net/java/example/java/io/ReadStandardIO.shtml] BufferedReader class[/url]
View All Comments
| View Tutorial