Small problem
This is quite simple but i don't know hot to do it! So help will be appreciated.
I have the following code:
String input ="";
BufferedReader ir =new BufferedReader(new InputStreamReader(System.in));
input = ir.readLine();
if(input.equals("go"){
System.out.println("Typed go");
method1(input);
}
if(input.equals("here")){
System.out.println("Typed test2");
Method2(input);
}
So this code SHOULD wait for an input from the command line, if a if statements is satisfied then it should open a method which should take in a DIFFERENT input. This code doesn't do that.
So i don't want the first input typed to be used as the arguments for the methods. But this is what happens.
Any suggestions on how i can overcome this? thanks in advance.

