View Single Post
  #2 (permalink)  
Old 04-14-2008, 11:24 AM
CaptainMorgan's Avatar
CaptainMorgan CaptainMorgan is offline
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 839
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
Your code has no main method to test your class. I suggest writing a main method to do so and start from there. At a glance, things seem okay with your code.... so I'm not 100% sure what you're asking exactly.. and the "Note" above is pretty specific so simply do what it says. When you run into a problem, defined as something not functioning correctly due to syntactical or logic related reasons, then I can be better positioned to assist you. Actually.. in retrospect, you already have two arrays, named profit and city, which is what you are supposed to do found in the "Note" section.

Summing it up, 1) start with a tester method(can be a main method), and 2) define your problem specifically(if you run into any).
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
to our beloved Java Forums!
(closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!
Got a little Capt'n in you? (drink responsibly)
Reply With Quote