Here is the problem I want to solve https://www.codeeval.com/open_challenges/100/
and here is my solution:
public static void main(String[] args) {
// TODO code application
File file = null;
try{
FileReader f = new FileReader("C:\\Users\\ranaa\\Desktop\\merna1.txt");
BufferedReader br = new BufferedReader(f);
String getContent;
while((getContent=br.readLine())!=null){
int content = Integer.parseInt(getContent);
System.out.println(content);
if(content %2==0)
System.out.println("1");
else
System.out.println("0");
}
}catch(Exception e){
System.out.println(e);
}
}
no output appears to me nor exception.
Can anybody help me?