Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
Hi, I'm coding a java program and I'm having some small problems. Create a pitcher and three goblets (by prompting the user for the initial contents of each container, and then constructing the required objects). For this application, the values for the contents of the pitcher and one goblet will be greater than zero, but the values for the contents of the other two goblets will be zero. The task is then to equalize the contents of the goblets. This will be accomplished as follows: If there is sufficient liquid in the pitcher to bring the two goblets with zero contents to the level of the goblet with non-zero contents, then this is what will be done. firstGoblet.pourInto(gAmount, firstPitcher); But I'm missing stuff. Replies: |
Sponsored Links
|