How to get the maximum without a method.
package com.codegym.task.task05.task0532;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
Task about algorithms
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader rd = new BufferedReader(new InputStreamReader(System.in));
int maximum = Integer.parseInt(rd.readLine());
//write your code here
if(maximum <= 0){
System.out.print("");
}
else{
maximum = maximum > maximum ? maximum: maximum;
System.out.println(maximum);
}
}
}