int min = console.nextInt(); int secondMin = console.nextInt(); if (secondMin < min) { int tmp = min; min = secondMin; secondMin = tmp;