Fix....help me if you can

import java.io.*;//BufferedReader ?InputStreamReader - IOException

publicclass Echo{

publicstaticvoid main (String[]args)

throws IOException{// must include this, more later

// create a text input stream

BufferedReader stdin=new BufferedReader

(new InputStreamReader(System.in));

//input 1st no

String message1;

System.out.println("Input a first number:");

Double.parseDouble(message1 =stdin.readLine());

//input 2nd no

String message2;

System.out.println("Input a second number:");

Double.parseDouble(message2 =stdin.readLine());

Double sum;

sum=message1+message2;

System.out.println("Your first number was: " + message1);

System.out.println("Your second number was: " + message2);

System.out.println("The sum is : "+sum);

}

}

I want to calculate every number after I input !!!

Thanks!!!:)

[1639 byte] By [jonathan10200102a] at [2007-10-2 14:26:28]
# 1
Replace// sum=message1+message2;with sum = Double.parseDouble(message1)+Double.parseDouble(message2);
vjoyweba at 2007-7-13 12:46:30 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...