Advertisement
Guest User

Untitled

a guest
Jun 14th, 2017
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.43 KB | None | 0 0
  1. public class Test {
  2.  
  3.     public static List<Grupo> lista = new ArrayList<Grupo>();
  4.     public static Double presupuesto = 10000.0;
  5.  
  6.     public static void main(String[] args){
  7.  
  8.         //Viernes tarde
  9.         lista.add(new Grupo("Corizonas",9,4000.0,"viernes","tarde",false,true));
  10.         lista.add(new Grupo("RussianRed",6,3000.0,"viernes","tarde",false,false));
  11.         lista.add(new Grupo("Sidonie",5,5000.0,"viernes","tarde",false,true));
  12.         //Viernes noche
  13.         lista.add(new Grupo("LoveOfLesbian",12,5000.0,"viernes","noche",true,false));
  14.         lista.add(new Grupo("Dorian",5,2000.0,"viernes","noche",false,false));
  15.         lista.add(new Grupo("NiÒosMutantes",3,3000.0,"viernes","noche",true,true));
  16.         //Sabado tarde
  17.         lista.add(new Grupo("IZAL",8,6000.0,"sabado","tarde",false,false));
  18.         lista.add(new Grupo("LA",6,3000.0,"sabado","tarde",false,false));
  19.         lista.add(new Grupo("LeÛnBenavente",6,4000.0,"sabado","tarde",false,false));
  20.         //Sabado noche
  21.         lista.add(new Grupo("ArizonaBaby",8,3000.0,"sabado","noche",true,false));
  22.         lista.add(new Grupo("Igloo",6,1000.0,"sabado","noche",false,true));
  23.         lista.add(new Grupo("Grises",6,2000.0,"sabado","noche",true,true));
  24.        
  25.         List<Grupo> lista1 = new BackTracking().recursividad(lista.size()-1,new ArrayList<Grupo>(),presupuesto);
  26.         System.out.println("Lista de grupo del festival: "+lista1);
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement