0

java help

I have such project https://code.sololearn.com/ceJzsHWJfRj0/#java I have some problem with some part of code. I show using comment where is a problem. Very thanks for the help. it's my sample exam from Programming:)

19th Jan 2019, 2:41 AM
Kasia Herasymenko
Kasia Herasymenko - avatar
3 Answers
0
Hi. Your class Locator does not have a method add. The error says the same thing. lokator.add(lokator);
19th Jan 2019, 4:30 AM
Earl_Grey
Earl_Grey - avatar
0
it is must be just an empty method or what it must return?
19th Jan 2019, 5:58 AM
Kasia Herasymenko
Kasia Herasymenko - avatar
0
I don't know 😀. It is your method. What for is it used here? Depending oh that the answer can be found. Also it is strange for me when object add itself to itself. Locator object already know about itself.
19th Jan 2019, 6:12 AM
Earl_Grey
Earl_Grey - avatar