- 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
12 Réponses
+ 1
This is code
https://code.sololearn.com/c98722GOQP6z/?ref=app
+ 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
+ 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.
+ 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
+ 1
Adham Empire you're welcome.
I just called the getTime() on the calendar reference in the toString().
0
Please help me
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 😔💔
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
0
Avinesh
Thank u 💙🧡💚
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 🧡🧡🌷🌷💚💚💙💙