View Single Post
Old 06-14-2007, 02:42 PM   #9 (permalink)
PnkFloyd27
 
True Techie

Join Date: Nov 2006

Posts: 111

PnkFloyd27

Default Re: Help with objects in Java

I'm getting an error that says:
unreported exception java.io.IOException; must be caught or declared to be thrown
GameManager.ShopOrBattle();
^

What do I do?

I have the method like this:
public void ShopOrBattle() throws IOException

I don't know where to put that "throws IOException" thing.

Edit: I'm having error after error and I don't know how to debug it, so I'm going to upload the files and if anyone feels that they are so inclined, please look at the code and help me out and teach me what I need to do. (possibly with comments)
I have part of the attachments on this post and the rest on the previous one.
Attached Files
File Type: txt Welcome.txt (238 Bytes, 36 views)
File Type: txt Robot5.txt (488 Bytes, 34 views)
File Type: txt Robot4.txt (488 Bytes, 40 views)
File Type: txt Robot3.txt (488 Bytes, 35 views)
File Type: txt Robot2.txt (489 Bytes, 38 views)

Last edited by PnkFloyd27; 06-14-2007 at 05:05 PM.
PnkFloyd27 is offline