Need help with csv file - find longest time in colomn

Hi,
I have a log file:
Id;HttpType;Path;Start;Time

1;GET;/api/v1/User/12330;2022-02-20 06:30:05.5166667;00:00:00.0282392

2;POST;/api/v1/Logger;2022-02-20 07:42:12.8133333;00:00:00.0781245
.
.
.
How I can find which method use max time. It is index[4].
I come so far that my code finds just the max number (index [1]):

public int findMaxNumber() {
int number = 0;
int max = 0;
String subStr;
for (String str: getStrList()) {
subStr = str.substring(0, str.indexOf(";"));
number = Integer.parseInt(subStr);
if (max<number){
max = number;
}
}
return max;
}

Hello.

Try to use split instead of substring with indexOf: String (Java Platform SE 8 )