Advertisement
Guest User

Untitled

a guest
May 3rd, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. /*
  2. *NightOut.java
  3. *@author P.Kinsela
  4. *03/05/2016
  5. */
  6.  
  7. public class NightOut{
  8. //declare variables
  9. private String input;
  10. private String venue;
  11. private String lagoona;
  12. private String workMansClub;
  13. private String diceys;
  14. private String harbourMaster;
  15.  
  16.  
  17. //constructor
  18. public NightOut(){
  19. input = " ";
  20. venue = " ";
  21.  
  22. }
  23.  
  24. //set methods
  25. public void setInput(String input){
  26. this.input = input;
  27. }
  28.  
  29. //compute
  30. public void compute(){
  31. if(input == "HCC year1" || "BAMTB year1"){
  32. venue = lagoona;
  33. }
  34. else if(input == "HCC year2" || "BAMTB year2"){
  35. venue = workMansClub;
  36. }
  37. else if(input == "HCC year3" || "BAMTB year3"){
  38. venue = diceys;
  39. }
  40. else if(input == "BSHC year1"){
  41. venue = harbourMaster;
  42. }
  43.  
  44. }
  45.  
  46.  
  47.  
  48.  
  49.  
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement