- 2

Can you Help me in this java question

the following file has three classes with different relations. if you run the file you see some output that shows the three of them are not working right. you need to update the necessary code that makes run works fine

8th Apr 2020, 1:10 PM
Adham Empire
Adham Empire - avatar
12 Réponses
8th Apr 2020, 1:11 PM
Adham Empire
Adham Empire - avatar
+ 1
You are missing an import statement. import java.util.GregorianCalendar; You have asked your question twice. Do you mind removing one of them? https://www.sololearn.com/Discuss/2232797/?ref=app
8th Apr 2020, 1:27 PM
Avinesh
Avinesh - avatar
+ 1
Could you explain in detail as what are you trying to achieve from this code so that it becomes easy for us to clarify your doubt.
8th Apr 2020, 1:40 PM
Avinesh
Avinesh - avatar
+ 1
I'm not yet sure what are you looking for but I have atleast made it more readable. https://code.sololearn.com/c2VSPq7C8bMn/?ref=app
8th Apr 2020, 2:23 PM
Avinesh
Avinesh - avatar
+ 1
Adham Empire you're welcome. I just called the getTime() on the calendar reference in the toString().
8th Apr 2020, 2:32 PM
Avinesh
Avinesh - avatar
0
Please help me
8th Apr 2020, 1:12 PM
Adham Empire
Adham Empire - avatar
0
Avinesh I forgot to add the libraries by mistake, but there are adjustments that must be in the code for the solution to be correct .. Please i need help 😔💔
8th Apr 2020, 1:35 PM
Adham Empire
Adham Empire - avatar
0
Avinesh Sorry i delete my question And This is the whole question that a Java course teacher asked at my university is he said : As we discussed that through the online meetings about the toString(), equals() and clone() methods that were inherited from the Object class, and if you need them to work fine, you need to rewrite them in a proper way. the following file has three classes with different relations. if you run the file you see some output that shows the three of them are not working right. you need to update the necessary code that makes run works fine
8th Apr 2020, 1:51 PM
Adham Empire
Adham Empire - avatar
8th Apr 2020, 2:09 PM
Adham Empire
Adham Empire - avatar
0
Avinesh Thank u 💙🧡💚
8th Apr 2020, 2:25 PM
Adham Empire
Adham Empire - avatar
0
Avinesh You are smart. You have solved an issue that I have not found in a long time. May God protect you and increase your knowledge Thank u so so much 🧡🧡🌷🌷💚💚💙💙
8th Apr 2020, 2:35 PM
Adham Empire
Adham Empire - avatar