I DONT UNDERSTAND WTF IS WRONG IN MY CODE ITS PERFECTLY WORKING ON JDK 9
AND CODECHEF IS SAYING IT HAS NZEC RUNTIME ERROR
/*
- To change this license header, choose License Headers in Project Properties.
- To change this template file, choose Tools | Templates
- and open the template in the editor.
/
import java.io.;
import java.util.*;
/**
*
-
@author Aashlesh Dhumane
*/
public class Main {/**
-
@param args the command line arguments
-
@throws java.lang.Exception
*/
public static void main(String[] args) throws Exception
{
// TODO code application logic here
int n;
int i,j,k,l;
System.out.println(“enter the test cases”);
String str;
BufferedReader b = new BufferedReader (new InputStreamReader(System.in));
str=b.readLine();
n=Integer.parseInt(str);
// for (i=0;i<n;i++)
// {
while (n>0)
{
str=b.readLine();
i=Integer.parseInt(str);
str=b.readLine();
j=Integer.parseInt(str);
str=b.readLine();
k=Integer.parseInt(str);
str=b.readLine();
l=Integer.parseInt(str);if ((i==j && k==l) || (j==k && l==i) || (i==k && j==l) ) {System.out.println("YES"); } else { System.out.println("NO"); } n--;}
}
-
}