Try this code this is work correctly..I hope this will be help to you..
class Question07{
public static void main(String args[]) throws IOException{
BufferedReader stdin = new...
Type: Posts; User: Tamilarasi
Try this code this is work correctly..I hope this will be help to you..
class Question07{
public static void main(String args[]) throws IOException{
BufferedReader stdin = new...
you declare the variable "a" globally or outside of the loop. Now you can run that code.
The problem is variable "a" is declared inside of the loop every time .
So the variable is not handle...