Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

command line arguments  RSS feed

 
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...
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!