[Solved] I need to know how to set a variable to this value in Java


Movie class can have String name and int year fields.Get their setter and getter method.
Initialize them by constructor like
new Movie(String name , int year);

1

solved I need to know how to set a variable to this value in Java