He is my code:
import java.util.Scanner;
import javax.swing.JOptionPane;
public class TicketNumber
{
public static void main(String[] args)
{
Scanner key = new Scanner(System.in);
System.out.print("Please enter your six digit ticket number: ");
int tNumber = key.nextInt();
int lastDigit = tNumber%10;
tNumber = (tNumber -(lastDigit))/10;
boolean evaluation = false;
if (tNumber%7 == lastDigit)
evaluation = true;
JOptionPane.showMessageDialog(null, "This number is a " + evaluation + " ticket number.");
}
}
When I run the program the JOptionPane does not show up. I simply want it to show a message box with the true/false result on it as I have set it up already.