public class Massiiv1{ public static void main(String[] arg){ System.out.println("Sisestasid "+arg.length+" nime."); if(arg.length>0){ System.out.println("Esimene: "+arg[0]); System.out.println("Viimane: "+arg[arg.length-1]); System.out.println("Juhuslik: "+arg[(int)(arg.length*Math.random())]); System.out.println("Terve loetelu: "); for(int i=0; i