Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  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.  
  7. package TunniPlaanPackage2;
  8.  
  9. import java.util.ArrayList;
  10. import javax.jws.WebMethod;
  11. import javax.jws.WebService;
  12.  
  13. /**
  14. *
  15. * @author Martin.Paroll
  16. */
  17.  
  18. @WebService
  19. public class OIS {
  20.  
  21. @WebMethod
  22. public static ArrayList getTunniplaan(String nimi, String matrikkel) {
  23. ArrayList<Tund> tunniPlaan = new ArrayList<Tund>();
  24. Tund t1 = new Tund();
  25. Tund t2 = new Tund();
  26. t1.aineNimi = "Mata";
  27. t1.oppeJouNimi = "Olemas";
  28. t1.RuumiNr = 1;
  29. Tund t3 = new Tund();
  30. t2.aineNimi = "Keka";
  31. t2.oppeJouNimi = "Jaan";
  32. t2.RuumiNr = 2;
  33. t2.aineNimi = "T8pa";
  34. t2.oppeJouNimi = "Elmar";
  35. t2.RuumiNr = 2;
  36. tunniPlaan.add(t1);
  37. tunniPlaan.add(t2);
  38. tunniPlaan.add(t3);
  39. return tunniPlaan;
  40.  
  41. }
  42.  
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement