Question: What are the major differences between a list and a set in Java? How can you determine when to implement a list versus a set for an application? Provide an example code snippet in Java that illustrates utilizing a list or a set in Java. After your initial post, respond to at least two peers in this discussion.