Hi everyone!!

Thank you for reading me, I need your help.
I'm new (very very new) in JAVA programming.

I have a problem. I'm trying to write an application that reads a couple of
numbers (double). It shows a message on screen that says something like
'type a number', and then it reads it.

The thing is that the program doesn't stop for the input of the second
number and I don't know how to solve it.

Can you help me please?

My code is similiar to the following one:

System.out.println("Type the first number: ");
try{
x = System.in.read();
} catch(IOException e){
System.out.println("It didn't work.");
}

System.out.println("Type the second number: ");
try{
y = System.in.read();
} catch(IOException e){
System.out.println("It didn't work.");
}
// We build the point
Point point1 = new Point(x,y);



Thank you very much for your attention and help.