File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Halloween Party Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Halloween Party" Watch "Halloween Party" New topic

Halloween Party

Marving Guildon

Joined: Sep 17, 2003
Posts: 9
Hello friends,
I got the task to create a program to assist in hosting of a halloween party. The program must call methods kept in the PartyXXX file from the main method PartyXXXStart. One method must serve to display the party location, time and what to bring, another method could calculate the cost for the party and who will be invited, and other method could be a list of the most popular customs. The program must included a switch statement, a for statement, three or more methods, an array, a loop, an if statement and instance variables and methods.
If you have already created a similar program that could be adjusted or if you have any idea that you want to share, please let me know.
Here is what I have so far, first the error messages:

Here is the main program:

At least I leaned how to post the question.
[ October 06, 2003: Message edited by: Marving Guildon ]
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
What have you done with this assignment so far? What ideas do you have for completing this assignment besides copying/adjusting someone else's work?

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Sloan Bowman
Ranch Hand

Joined: Jan 21, 2003
Posts: 107
I'll be glad to help you with this program but you need to think about it and come up with a plan first. Feel free to send me a personal message and we can work together on it. Seems rather simple.
Marving Guildon

Joined: Sep 17, 2003
Posts: 9
This is what I have so far:

Here is the main method:

And here is the error message for PartyXXX:

Can you help to solve this error?
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
This statement says "look for the variable named "array" and execute it's output method.

I don't see a variable named "array" in your program. It would be a really lousy choice for a variable anyway due to the confusion factor. Same goes for methods named "array".

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: Halloween Party
It's not a secret anymore!