Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- *NightOut.java
- *@author P.Kinsela
- *03/05/2016
- */
- public class NightOut{
- //declare variables
- private String input;
- private String venue;
- private String lagoona;
- private String workMansClub;
- private String diceys;
- private String harbourMaster;
- //constructor
- public NightOut(){
- input = " ";
- venue = " ";
- }
- //set methods
- public void setInput(String input){
- this.input = input;
- }
- //compute
- public void compute(){
- if(input == "HCC year1" || "BAMTB year1"){
- venue = lagoona;
- }
- else if(input == "HCC year2" || "BAMTB year2"){
- venue = workMansClub;
- }
- else if(input == "HCC year3" || "BAMTB year3"){
- venue = diceys;
- }
- else if(input == "BSHC year1"){
- venue = harbourMaster;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement