Joining both hashsets together
问题 My aim is to create a database like code where i add planets and the year they are found, and once the user inputs planets it shows all the planets and the year they are found, so far i have created this. import java.util.HashSet; import java.util.Scanner; import java.lang.*; public class sky { public static void main(String args[]) { Scanner in = new Scanner(System.in); // HashSet declaration HashSet < String > planet = new HashSet < String > (); // Adding elements to the HashSet planet.add(