public class HelloWorld {
public static void main(String[] args) {
coutMax(1,5,7,95,65);
}
public static void coutMax(int... args){
int max = args[0];
for(int i=0;i<args.length;i++){
if(args[i]>max){
max=args[i];
}
}
System.out.println("The max value is " + max);
}
}