import java.io.*;
class InputToDouble
{
public static void main (String[] args) throws IOException
{
String charData;
double value;
BufferedReader stdin = new BufferedReader ( new InputStreamReader( System.in ) );
System.out.println("Enter a double:");
charData = stdin.readLine();
value = ( Double.valueOf( charData ) ).doubleValue();
System.out.println("Valeur : " + value +" doublement de la valeur : " + 2*value );
}
}
|