It compiles and runs fine, but when I run it it never ends. It keeps asking for a second integer. Here's the code.
Scanner get = new Scanner ( System.in );
System.out.print( "Please enter first integer: " );
int value = get.nextInt();
int smallest = value;
int largest = value;
for (int count = 0; count < 7; count++ )
{
System.out.println ( "Enter the second integer" );
value = get.nextInt();
System.out.println( "Enter the third integer" );
value = get.nextInt();
if ( value > largest ) largest = value;
if ( value < smallest ) smallest = value;
System.out.printf( "%d:%d",smallest, largest );
}
}
}