Update Main.java

Modified Type of list to make more generic