package method;
import java.util.Scanner;
public class Method {
public static void main(String[] args) {
Scanner scn=new Scanner (System.in);
System.out.println(“Birincisayi Giriniz : “);
int a =scn.nextInt();
System.out.println(“Ä°kinci sayi Giriniz : “);
int b =scn.nextInt();
int k = max(a, b);
System.out.println(“Buyuk sayi “+ k);
}
public static int max(int sayi1, int sayi2) {
int sonuc;
if (sayi1 > sayi2)
sonuc = sayi1;
else
sonuc = sayi2;
return sonuc;
}
}