#Help with a java code

7 messages · Page 1 of 1 (latest)

past ridge
#

hello, i didn't understand what to do in the request :
The list of cities available in the system must be presented to him. The list of cities will be extracted from the field in RealEstate that represents the list of cities.
Important note: The user is not responsible for the initial income of the City objects. The constructor of the RealEstate class will create an array of size 10, containing 10 City objects, each representing a different city. At least one city from each province must be added.
After the list of cities is presented to the user, he will have to type the name of one of the cities in the list. If the typed name does not match one of the cities in the list, a corresponding message will be printed and the method will return false.

where should i put the cities..?

teal abyssBOT
#

This post has been reserved for your question.

Hey @past ridge! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

stray bane
#

From what I understand, the cities are given. You only need to print it out and make it accessible to the user

#

Then create a simple GUI where the user can select cities etc

stiff vale
simple mulch