public class Foo{ static int add(int a, int b){return a+b;} public static void main(String[] args){ int r=add(21,22); System.out.println(r); } }