This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes say what? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "say what?" Watch "say what?" New topic

say what?

Ra Carter
Ranch Hand

Joined: Jul 30, 2005
Posts: 96
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

Joined: Feb 07, 2005
Posts: 2367
In the loop, the condition increments the value of x before the statements in the body of the loop are executed.
Consider Paul's rocket mass heater.
subject: say what?
Similar Threads
command line invocation
Exception in thread "main"
Not looping...
While loop - Head's First Java example
static doubt