Note: I'm a Beginner/Intermediate lvl java programmer so please be nice :S
I came across this lesson about how to compare 2 objects and I noticed this way of creating an object/instance which is completely new to me.
MyValueObject myValueObject = (MyValueObject) obj;
Q: How to put my parameters to pass it to the constructor for this object using this way?
What I'm used to and most of beginners too is:
MyClass Object = new MyClass( my parameters ) ;
Thank you.