hi all
just a question.
if you are making a if statement in a game and the compile is not reading the condition in the if statement and it jumping out and reading the rest of the codes
what is the cause of that. I am trying to build my game and I have implemented an if statement. this is my if statement.
if(diff == 'e' || diff == 'E')
{
System.out.println("enter diff level");
diff = keyin.next().charAt(0);
}
can u tell me if I am doing something wrong here, it only read it if i prompt for it. the game is supposed to if the student want to play either easy, medium or hard.