import static java.lang.Math.*; public class Sp04 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int i = 1; i++; System.out.println(i); System.out.println(max(3, 6)); System.out.println(add(1,2,3,4,5,6,7,8,9)); } public static int add(int a,int ... args){ int num=a; for(int i=0; i<args.length; i++){ num += args[i]; } return num; } }