Read: http://www.learnjavaonline.org/en/Conditionals
int num=0;
int a=4;
if(a==4){}
String a="hello";
String b="hell"+"o";
if(a.equals(b)){}
if(a<0){}
else if(a>0 && a<5){}
else{}
import javax.swing.JOptionPane;
public class Grade
{
public static void main(String[] args)
{
String str=JOptionPane.showInputDialog("Enter a letter"); //gets a string from user input and stores it in the variable str
//your code here. Complete the program
}
}
Created: Dexin on 3/25/18
Updated: Dexin, 12/5/18