aspose file tools*
The moose likes Beginning Java and the fly likes Exceptions exercise Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Exceptions exercise" Watch "Exceptions exercise" New topic
Author

Exceptions exercise

michael delta
Ranch Hand

Joined: Aug 11, 2009
Posts: 35

Could someone explain the control flow in this exercise?It's getting a little messy.

Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39869
    
  28
Put some System.out.println(), or e.printStackTrace() (in catch only) calls in the blocks, and see which block you are in.
If you seem to work from right-to-left, remember the = operator evaluates what is on its right, then applies it to what is on its left.
michael delta
Ranch Hand

Joined: Aug 11, 2009
Posts: 35

Nice one!!!Thnx!
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39869
    
  28
michael delta wrote:Nice one!!!Thnx!
You're welcome The result of having such problems in the past.

Please avoid abbreviations like thkx because they are difficult for non-native English speakers to understand.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exceptions exercise