A
alexie ivanov
Hi , my name is alexie ivanov and i'm a novice java programmer .. and
my question is : why does the following code displayes nothing .. i
think it must read the args array , but instead of that a blank line
is printed ... so what's wrong with it ?
public class ReadArgs {
public static void main(String args[]){
String output="" ;
for(int counter=0 ; counter<args.length ; counter++)
output+=args[counter]+" " ;
System.out.println(output);
}
}
my question is : why does the following code displayes nothing .. i
think it must read the args array , but instead of that a blank line
is printed ... so what's wrong with it ?
public class ReadArgs {
public static void main(String args[]){
String output="" ;
for(int counter=0 ; counter<args.length ; counter++)
output+=args[counter]+" " ;
System.out.println(output);
}
}