// This program read in two numbers and displays their sum.
// Barry Cornelius, 2 June 2000
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class SumProg
{
   public static void main(final String[] pArgs) throws IOException
   {
      final BufferedReader tKeyboard =
                    new BufferedReader(new InputStreamReader(System.in));
      System.out.print("Type in your first number: ");
      System.out.flush();
      String tLine = tKeyboard.readLine();
      final double tFirst = Double.parseDouble(tLine);
      System.out.print("Type in your second number: ");
      System.out.flush();
      tLine = tKeyboard.readLine();
      final double tSecond = Double.parseDouble(tLine);
      final double tSum = tFirst + tSecond;
      System.out.println("The sum of " + tFirst + 
                         " and " + tSecond + " is " + tSum);
   }
}
