public class Laskuri { public static int summa(int eka, int toka) { int sum; sum = eka + toka; return sum; } public static int summa(int n) { int sum=0; for (int i = 1; i <= n; i++) { sum += i; } return sum; } public static boolean parillinen (int luku) { if (luku %2 == 0) return true; else return false; } public static int suurempi(int eka, int toka) { int s; if (eka > toka) s=eka; else s=toka; return s; } public static void main(String[] args) { int n = 10; int z; z = summa(5); System.out.println(z); z = summa(n); System.out.println(z); System.out.println (parillinen(summa(3))); System.out.println(suurempi(3,4)); } }