/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package question1a; import java.util.Scanner; /** * * @author crusoe */ public class Question1a { /** * @param args the command line arguments */ public static void main(String[] args) { int a, b, c, d, e, max = a, min = a; Scanner keyboard = new Scanner(System.in); System.out.println("Enter five integer numbers"); a = keyboard.nextInt(); b = keyboard.nextInt(); c = keyboard.nextInt(); d = keyboard.nextInt(); e = keyboard.nextInt(); if (b < min) min = b; if (b > max) max = b; if (c < min) min = c; if (c > max) max = c; if (d < min) min = d; if (d > max) max = d; if (e < min) min = e; if (e > max) max = e; System.out.println("The min is" + min + "and the max is" + max); } } ERROR is.. run: Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - variable a might not have been initialized at question1a.Question1a.main(Question1a.java:17) Java Result: 1 BUILD SUCCESSFUL (total time: 1 second)