aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Whats the output ???? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Whats the output ????" Watch "Whats the output ????" New topic
Author

Whats the output ????

Niranjan Deshpande
Ranch Hand

Joined: Oct 16, 2005
Posts: 1277

for the very first time , i=0 so the case 0 : must be evaluated´┐Żright ???
the why the hell the output of this code is 3 0 4 6 3. how come the first digit in output is 3 ???



[B]Please use tags[/B]
[ November 02, 2005: Message edited by: Barry Gaunt ]

SCJP 1.4 - 95% [ My Story ] - SCWCD 1.4 - 91% [ My Story ]
Performance is a compulsion, not a option, if my existence is to be justified.
Steve Morrow
Ranch Hand

Joined: May 22, 2003
Posts: 657


[ November 02, 2005: Message edited by: Steve Morrow ]
Steve Morrow
Ranch Hand

Joined: May 22, 2003
Posts: 657

Also, you either mistyped the output or forgot a break statement, but that code won't produce that output...
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Output is: 3 0 3 4 6 3


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
 
jQuery in Action, 2nd edition
 
subject: Whats the output ????