/********************************************************************* * Author: Eric Heim * Date Created: 6/23/2011 * Course: CS0007 * Description: Shows the use of multiple arguments being passed to * a single method *********************************************************************/ public class MultipleArgs { public static void main(String[] args) { int x = 3; difference(9, 6); difference(x, 1); difference(1, x); } public static void difference(int number1, int number2) { System.out.println("The difference of the two numbers passed here is " + (number1 - number2)); } }