Yupp i know this thats y i have used
for(i=0;i<t;i++)
{
z[i]="";
System.out.println();
String s=sc.nextLine();
for skipping a line after every test case is inputted Inside the for loop... I have inputted in the same format only. bt still shows NZEC?? Help