public class Tekst1{ public static void main(String[] arg){ System.out.println("Ahoi!"); if(arg.length>0){ System.out.println("Esimene argument: "+arg[0]); System.out.println("Kogu loetelu: "); for(String argument: arg){ System.out.println(argument); } System.out.println("Koos loenduriga:"); for(int i=0; i