+ 1
I want to do this association but i have error in my system.out.println. thanks you.
Système.out.println https://code.sololearn.com/cY8S6loQ9w57/?ref=app
2 Answers
+ 1
Also Add a default construtor in Books class as
Books() {}
And correct way of this statement :
System.out.println(location1.name + location2.namebook);
location3.Way();
Or make Way function to return something...