need some help with my java code. i'm getting incompatible types error. can anyone tell me what's wrong with my code?
import java.io.*;
public class ifelsechain2
{
public static void main(String[] args)
throws java.io.IOException
{
String string1;
int num1;
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
System.out.println("Enter a Grade: ");
string1 = br.readLine();
num1 = Integer.parseInt(string1);
switch(num1){
case num1 >= 90:
case num1 <= 100:
System.out.println("You have an A! :D");
break;
case num1 >= 80:
case num1 <= 89:
System.out.println("You have a B! :)");
break;
case num1 >= 70:
case num1 <= 79:
System.out.println("You have a C. -_-");
break;
case num1 >= 60:
case num1 < 69:
System.out.println("You have a D. :(");
break;
case num1 >= 0:
case num1 <= 59:
System.out.println("You have a F. :(");
break;
default:
System.out.println("You messed up");
}
}
}