Can anyone please help me. I have written this code and executed in my local system its working well but i am getting as wrong answer when i submitted here for the below test program
import java.io.*;
import java.util.*;
public class Main{
public static void main(String args[]){
ArrayList al = new ArrayList();
try{
int num = 0;
while(num!= 44){
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
num = Integer.parseInt(br.readLine());
if(num ==44){
continue;
}
else{
al.add(num);
}
}
for(Object o :al)
System.out.println(o);
}
catch(Exception ie){
}
}
}