Hi and welcome to DIC, glad you decided to join! I found a few uncorrect things here, first:
CODE
String quanity(3);
throws a syntax error. If you want to declare an array, do it like that:
CODE
String[] quanity;
quanity = new String[3]; //Put this where you want to create your array
Next point: In the constructor, you haven't defined the welcome() method, so it throws a compile error saying the welcome() method is undefined.
At the end of the code, you called:
CODE
new hotDog();
your class is named newHotDog, so you should have called:
CODE
new newHotDog();
creating an object is saying "new "+class name.
By convention, a class name starts with a capital letter, but it won't throw an error if you don't follow that.
Also, a method body is between {}. I know you know this, maybe you just forgot it at the start of the finishUp method, add it.
This was a basic overview of your errors, I suggest you use Eclipse SDK to develop in Java, get it here:
http://www.eclipse.org. It shows your compile errors as you write your code.
In this forum, there's a Java FAQ topic which shows some beginner tutorials, I think you need a syntax tutorial.
Hope this helps, any questions then just reply!
This post has been edited by alpha02: 17 Sep, 2007 - 03:46 AM