• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

command line arguments

 
Soumy Kumar
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I answered 3) none of these options becoz

actually its possible to assign an element of the arg to a string array
and not string ..

am i right ???
[ March 24, 2005: Message edited by: Soumy Sam ]
 
Animesh Shrivastava
Ranch Hand
Posts: 298
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well according to u the code is like:

Do u think its correct?
and in the options its mentioned that "assign an element of the arg" which means assign the element of the array to either
1) a string(Quite obvious), isnt it?
2) or char array(untrue, its not C)
String str1 = args[0];// right
 
Soumy Kumar
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I interpreted the qn wrongly..


thanks...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic