/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package experimento2;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;


public class CD {
    public void album() throws Exception
    {
        String z;
    	String h = "XXXX";
    	int opcion2 = 0;
    	
    	System.out.println(" Para salir de esta opción presione XXXX");
    	
		do
    	{	
			System.out.println(" La variable h es "+h);
			System.out.println(" Introducir el nombre del álbum");
			BufferedReader lector=new BufferedReader(new InputStreamReader(System.in));
			z = lector.readLine();
			if ( z == h)
			{
				opcion2 = 2;
			}
			else
			{
		          String j = z;
		          List<String>album=new ArrayList<String>();
		          album.add(j);  
			}
			 /// Preguntar por cuántas canciones hay en el álbum y posteriormente usar el método canciones. En el método está la lista ///					

			  	}while(opcion2!=2);
  
    	
    	

	            
	            

		}
    	

        }
 
