answersLogoWhite

0

Scanner misterscan = new Scanner(System.in);

int num1, num2, num3;

int [] temp = new int[3];

for (int k = 0; k < 3; k ++)

{

System.out.print("Enter num: ");

temp[k] = misterscan.nextInt();

}

Arrays.sort(temp); //Uses merge sort, and since I am lazy I cheated.

num1 = temp[0];

num2 = temp[1];

num3 = temp[2];

User Avatar

Wiki User

17y ago

What else can I help you with?

Continue Learning about Engineering
Related Questions