All pastes #974710 Raw Edit

Miscellany

public java v1 · immutable
·published 2008-04-06 23:47 UTC
rendered paste body
public static void main(String [] args){String [] texto1= new String [(args.length/2)-(args.length%2)];// String texto1= new String;float x= (args.length%2);int a =0;if (x==1){a=1;}System.out.print(args[1]);if (x<1 && x>0){a=-1;}String [] texto2 = new String [(args.length/2)-(args.length%2)+a];//String [] texto2 = new String [4];int contLength;contLength = args.length;int i =1; int b =0;System.out.print("String das posicoes pares: ");while(contLength >b){texto1= args;System.out.println(texto1);i++;b=b+2;}b=1;i=1;System.out.println("String das posicoes impares");while(contLength >b){texto2= args;System.out.println(texto2);i++;b=b+2;}}