First thing you'll need to do is to read in your text file and capture the data in a String .. I assume that each Shape will at least be on a different line in the text file. Then you'll need to parse the String using the split command this will give you a sinle dimension array for each String. If you can get that far you'll be 90% of the way there. Have a go at reading in the file first and if you are having problems post back. Good luck, Barry
"First thing you'll need to do is to read in your text file and capture the data in a String .. I assume that each Shape will at least be on a different line in the text file. Then you'll need to parse the String using the split command this will give you a sinle dimension array for each String."
Are there any examples? I find that I learn best with example, else I just sit on a chair coding for hours, days, weeks without progress because I simply do not know what Im doing!
Do you have a textbook? It should have plenty of examples. You may also want to see if the Java Tutorial has something appropriate to help you. Also, the links to the Java API documentation I gave above have a lot of helpful information, even if there are not full code examples.
It may be as simple as adding an import at the top of the class ... right after package if you have one, right before class.
import java.io.IOException;
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi