0
System.out.print("Enter the letter(t or z): ");
  B]letter = keyboard.next();[/B]


  if (letter == 't'||letter == 'T')
   {
     System.out.println("True");
   }

 else if (letter  == 'z'|| letter == 'Z') 
   {
    System.out.println("False");        }

Im getting an error here in bold, what is the problem??

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by Akill10
0

What error are you getting? There is nothing wrong with the code you posted, the best way to debug is to show us all of the code because the problems are usually in a different place.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.