I need to check if a "user" types in the word "if". Let me explain, i have this: String text;
Scanner read = new Scanner(System.in);
System.out.println("type text");
text=read.nextLine();
System.out.println("the text is " +text);
I need to make sure that what is typed in is a the word "if".