Posted : 5 months ago
Create a POJO with states and behaviors. Make sure that the class is well defined with at least 4 class variables. At least one behavior and at least one class variable that is an Array. Then create the main class and create a new instance of your class. Populate the object then print all the populated fields of the object.
Use any values other than cars. Trucks, People, Stocks, really anything that you can think of.