wierd error

/* package codechef; // don’t place package name! */

import java.util.;
import java.lang.
;
import java.io.*;

/* Name of the class has to be “Main” only if the class is public. */
class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{
int t,i;
Scanner obj=new Scanner(System.in);
//System.out.println(“enter t”);
t=obj.nextInt();
//Scanner obj1=new Scanner(System.in);
for(i=1;i<=t;i++)
{
String str=obj.nextLine();
String str1=“not”;
int x=find_str(str,str1);
if(x==-1)
{
System.out.println(“regularly fancy”);
}
else
{
System.out.println(“Real Fancy”);
}

}
}
 public static int find_str(String main,String search) {

    int i; 
    int found=-1;

    String[] s=main.split(" ");
    for(i=0;i<s.length;i++)
    {
        if(search.equals(s[i]))
        found=i+1;
    }
    return found;
}

}
error:
Exception in thread “main” java.util.NoSuchElementException
at java.util.Scanner.throwFor(Scanner.java:862)
at java.util.Scanner.next(Scanner.java:1485)
at java.util.Scanner.nextInt(Scanner.java:2117)
at java.util.Scanner.nextInt(Scanner.java:2076)
at Codechef.main(Main.java:15)