Including a "while loop" in my java program.

Can someone tell me what is wrong with my program? I'm trying to set up a while loop so that I read in the number of test cases, then the program asks that many times what the values of x1, x2, y1, and y2 are to compute that distance. For some reason when I run the program it doesn't do anything like it's waiting for an input.

Life is about hanging onto what you think is important and finding out what really is important.
"Stop Ruining my joke!", "No, a joke implies humor attached at no additional cost"
So many sayings, so little sig space.

System.out.println("How many coordinate distances do you wish to find?");

prior to

Code:

testno=scan.nextInt();

will show you where you're at.

Also. You'll probably want to fix

Code:

int count = 1;
while (count <testno)

Think what will happen if the user inputs 1.

Life is about hanging onto what you think is important and finding out what really is important.
"Stop Ruining my joke!", "No, a joke implies humor attached at no additional cost"
So many sayings, so little sig space.

This is obviously a school project. Doing too much will often mean you cheated and will quite often automatically get you an F.

Life is about hanging onto what you think is important and finding out what really is important.
"Stop Ruining my joke!", "No, a joke implies humor attached at no additional cost"
So many sayings, so little sig space.

Life is about hanging onto what you think is important and finding out what really is important.
"Stop Ruining my joke!", "No, a joke implies humor attached at no additional cost"
So many sayings, so little sig space.

I have that outside my cubicle. Along with this. Not sure how my manager feels about it...

Life is about hanging onto what you think is important and finding out what really is important.
"Stop Ruining my joke!", "No, a joke implies humor attached at no additional cost"
So many sayings, so little sig space.