import java.io.*; class TwoNums4 { // A program that prompts for two numbers then prints the difference between // the two squares, and the midpoint. Uses methods in class MyFuncs to // calculate them. public static void main (String[] args) throws IOException { int m,n,d; BufferedReader in = Text.open(System.in); System.out.print("Enter first number: "); m=Text.readInt(in); System.out.print("Enter second number: "); n=Text.readInt(in); d=MyFuncs.diffTwoSquares(m,n); System.out.println("The difference between the two squares is: "+d); d=MyFuncs.midpoint(m,n); System.out.println("The midpoint of the two numbers is: "+d); } }