This program will compile, but nothing happens when I run it, can you guys see why? It is supposed to ask for a number on the command line, and then check if the number is less than 5. Thanks for the help.
import java.util.*; class ReadNumber { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); int a = keyboard.nextInt(); if (a < 5) { System.out.println("The number is less than five."); } } }