Answer:
import java.io.*;
public class Larger {
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));// reading input from buffered reader
int a,max=-99999,i;
for(i=1;i<=5;i++)
{
a=Integer.parseInt(br.readLine());//converting string input string to int
if(a >max)
max=a;
}
System.out.println("Maximum value : "+max);
}
Step-by-step explanation: