// DiffSquares.java: calculate the difference of two squares class DiffSquares { static int diffSquares(int a, int b) { int sum; int diff; sum = a + b; diff = a - b; return sum * diff; } public static void main(String[] args) { int x = Integer.parseInt(args[0]); int y = Integer.parseInt(args[1]); System.out.print("The difference of squares is: "); System.out.println(diffSquares(x,y)); } }