All pastes #2067108 Raw Edit

Someone

public text v1 · immutable
#2067108 ·published 2011-05-22 20:01 UTC
rendered paste body
package server;
import java.util.*;
/**
 *
 * @author Rene
 */
public class CineData {
    public class Movie { 
    int ID=0; int Places=0; String Title="";
    Movie(int ID, int Places, String Title) {
      this.ID=ID;
      this.Places=Places;
      this.Title=Title;
    }
    }
    public void Movies() {
        ArrayList<Movie> Movies = new ArrayList<Movie>();
        Movie Avatar = new Movie(1,20,"Kino 1 - Avatar");
        Movie TronLegacy = new Movie(2,30,"Kino 2 - Tron Legacy");
        Movie HarryPotter = new Movie(3,25,"Kino 3 - HarryPotter");
        Movie Enterprise = new Movie(4,30,"Kino 4 - Enterprise");
        Movies.add(Avatar);
        Movies.add(TronLegacy);
        Movies.add(HarryPotter);
        Movies.add(Enterprise);
        MovieAdd(Movies);
    }
    public void MovieAdd (ArrayList Movies, int ID, int Places, String Title)
    {
        Movie Title=new Movie(ID,Places,Title);
    }