import java.util.*;
public class Main
{
public static void GetMinMax(float number1, float number2)
{
System.out.print("Enter the minimum value: ");
number1 = Float.parseFloat(new Scanner(System.in).nextLine());
System.out.print("Enter the maximum value: ");
number2 = Float.parseFloat(new Scanner(System.in).nextLine());
while (number2 < number1)
{
System.out.printf("Incorrect. Should be %1$s or more." + "\r\n", number1);
System.out.print("Enter the maximum value: ");
number2 = Float.parseFloat(new Scanner(System.in).nextLine());
}
}
static void main(String[] args)
{
float number1 = 000000000.00f, number2 = 000000000.00f;
GetMinMax(number1, number2);
}
}