• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

say what?

 
Ra Carter
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i got this from a scjp book somewhere. i understand why it compiles and runs but I dont get the output. here is the code:



and from the command line:


what i dont get is what happened to the "-" character? shouldnt this be part of the parameters?
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the loop, the condition increments the value of x before the statements in the body of the loop are executed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic