1. Create a Producer and Consumer (See the comments on the main method). 2. Create toString, equals, and hashCode methods in the SharedItem class. To do this in IntelliJ IDEA, do the following in the body of the SharedItem class: 2.1. Alt+Insert -> toString() -> Enter.
GO TO FULL VERSION