daily pastebin goal
40%
SHARE
TWEET

Untitled

a guest Apr 21st, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package newpackage;
  7.  
  8. import java.util.ArrayList;
  9. import java.util.List;
  10.  
  11. /**
  12.  *
  13.  * @author P-011-18.hallgato
  14.  */
  15. public class itallap {
  16.     private List<Sor> sorok = new ArrayList();
  17.     private List<Bor> borok = new ArrayList();
  18.     public List<Palinka> palinkak = new ArrayList();
  19.     private List<Mennyiseg> sormenny = new ArrayList();
  20.     private List<Mennyiseg> bormenny = new ArrayList();
  21.     private List<Mennyiseg> palinkamenny = new ArrayList();
  22.  
  23.     static{
  24.     System.out.println("initialise");
  25.     }
  26.     public itallap() {
  27.         sorok.add(new Sor("vilagos", 4.5, "asd", "Soproni",1));
  28.         sorok.add(new Sor("barna", 3, "gsdfg", "Soproni",2));
  29.         sorok.add(new Sor("vilagos", 5.5, "ztttrztr", "Soproni",3));
  30.         sorok.add(new Sor("vilagos", 100, "bnnbnghng", "Humbak fele",4));
  31.  
  32.         borok.add(new Bor("voros", 10, "lkdok", "BB",1));
  33.         borok.add(new Bor("feher", 8, "vbv", "BB",2));
  34.         borok.add(new Bor("voros", 14, "csdy", "BB",3));
  35.         borok.add(new Bor("voros", 10, "lkaSAdok", "BB",4));
  36.  
  37.         palinkak.add(new Palinka("szilva", 40, "xcvx", "BB",1));
  38.         palinkak.add(new Palinka("korte", 30, "bvnbn", "BB",2));
  39.         palinkak.add(new Palinka("szilva", 30, "ooierero", "BB",3));
  40.         palinkak.add(new Palinka("szilva", 120, "qweqwe", "BB",4));
  41.  
  42.         sormenny.add(new Mennyiseg(2,"L","Korsó",1));
  43.         sormenny.add(new Mennyiseg(5,"DL","Üveg",2));
  44.         bormenny.add(new Mennyiseg(5,"DL","Üveg",1));
  45.         bormenny.add(new Mennyiseg(3,"DL","Pohár",2));
  46.         palinkamenny.add(new Mennyiseg(1,"L","Üveg",1));
  47.         palinkamenny.add(new Mennyiseg(2,"DL","Pohár",2));
  48.     }
  49.  
  50.     public List<Sor> getSorok() {
  51.         return sorok;
  52.     }
  53.  
  54.     public void setSorok(List<Sor> sorok) {
  55.         this.sorok = sorok;
  56.     }
  57.  
  58.     public List<Bor> getBorok() {
  59.         return borok;
  60.     }
  61.  
  62.     public void setBorok(List<Bor> borok) {
  63.         this.borok = borok;
  64.     }
  65.  
  66.     public List<Palinka> getPalinkak() {
  67.         return palinkak;
  68.     }
  69.  
  70.     public void setPalinkak(List<Palinka> palinkak) {
  71.         this.palinkak = palinkak;
  72.     }
  73.    
  74.  
  75. }
RAW Paste Data
Top