i am new to java and i am getting"cannot find symbol-variable data"please help here is my code
import java.io.*;
class categories
{
void options()throws IOException
{
int a;
System.out.println("The categories available are");
System.out.println("1.Fantasy");
System.out.println("2.Fiction");
System.out.println("3.Inspirational");
System.out.println("4.Mystery");
System.out.println("5.Comics");
System.out.println( );
System.out.println("enter your choice");
data=stdin.readLine();
a=Integer.parseInt(data);
switch(a)
{
case 1:System.out.println("1.The vampie academy series" );
System.out.println("2.The Percy jackson series");
System.out.println("3.The Marked series");
System.out.println("4.The Airhead series");
break;
case 2:System.out.println("1.The Harry potter series");
System.out.println("2.The Girl with the Dragon tatoo series");
System.out.println("3.The Mediator series");
System.out.println("4.The Twilight series" );
break;
case 3:System.out.println("1.Unposted letters");
System.out.println("2.The Monk who sold his Ferrari series");
System.out.println("3.The Chicken soup series");
System.out.println("4.Frozen thoughts");
break;
case 4:System.out.println("1.The Hardy boys series");
System.out.println("2.The Nancy Drew series");
System.out.println("3.The Sherlock Homes series");
System.out.println("4.The Tin-Tin series");
break;
case 5:System.out.println("1.Archie");
System.out.println("2.Garfield");
System.out.println("3.Calvin and Hobbes");
System.out.println("4.Batman");
break;
default:System.out.println("books in this category not available");
}
}
void me()
{
int n;
System.out.println("Thank you for using Just reads services ");
System.out.println("Would you like to borrow more books?");
System.out.println("Enter your choice");
data=stdin.readLine();
n=Integer.parseInt(data);
if(n=="Yes")
{
int z=obj.options();
}
else
{
int z=obj. bill();
}
}
void bill()
{
System.out.println("bill");
}
public static void main (String args[])throws IOException
{
InputStreamReader instream=new InputStreamReader(System.in);
BufferedReader stdin=new BufferedReader(instream);
obj.categories=new categories();
obj.options();
obj. me();
obj. bill();
}
}