import java.util.ArrayList;
import java.util.Scanner;

/**
 * Allows user to input as many song titles as they want
 * Terminates when a return character is entered twice
 *
 */
public class AddSongs
{
    public static void main(String[] args)
    {
        ArrayList<String> songs = new ArrayList<String>();

        
        Scanner scanner = new Scanner(System.in);
        String line;

        System.out.printf("Enter song titles here:\n");

        do
        {
            line = scanner.nextLine();
            songs.add(line);
        }
        while(!line.equals(""));
        
        
        scanner.close();
        
    }
}

Code Output

Future Plans

  • Integrate this feature futher
  • Use this simple feature for the user to add their own songs and have others like/dislike them