Loading
Java - Comparable and Comparator Interface

Exercise Number: 1

Q. Create a class Fruit with a name field. Make it implement Comparable to sort the list alphabetically.