public static void main(String[] args) {
		Scanner scan = new Scanner(System.in); // Create a new Scanner
		System.out.print("Please enter 4 integers, seperated by spaces: "); // Prompt the user to enter four integers
		int a = scan.nextInt(); // Get the first number entered
		int b = scan.nextInt(); // Get the second number entered
		int c = scan.nextInt(); // Get the third number entered
		int d = scan.nextInt(); // Get the fourth number entered
		
		System.out.printf("The average of %d, %d, %d, and %d is %f.", a, b, c, d, average(a, b, c, d)); // Print a, b, c, d, and their average
		
		scan.close();
	}