Can you help me see what I am missing as far as the input scenarios are concerned? Thank you!
package com.codegym.task.task04.task0441;
/*
Somehow average
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String inputString = br.readLine();
String inputString02 = br.readLine();
String inputString03 = br.readLine();
int num1 = Integer.parseInt(inputString);
int num2 = Integer.parseInt(inputString02);
int num3 = Integer.parseInt(inputString03);
System.out.print(middleNum(num1, num2, num3));
}
public static int middleNum(int a, int b, int c) {
int temp;
if (a > b) {
temp = a;
a = b;
b = temp;
}
if (b > c) {
temp = b;
b = c;
c = temp;
}
if (a > b) {
temp = a;
a = b;
b = temp;
}
return b;
}
}