Skip to content
Snippets Groups Projects
Select Git revision
  • 84accb1803aba24a3a75aebf28550dc95745532b
  • 3.9 default
  • develop
  • 6.0
  • 5.0
  • 4.0
  • scrutinizer-patch-4
  • scrutinizer-patch-3
  • scrutinizer-patch-2
  • scrutinizer-patch-1
  • 3.7
  • 3.8
  • 3.6
  • 3.9_backported
  • 3.8_backported
  • 3.7_backported
  • 3.5
  • 3.6_backported
  • 3.5_backported
  • 3.4
  • 3.3_backported
  • 6.0.4
  • 6.0.3
  • 5.0.7
  • 6.0.2
  • 6.0.1
  • 5.0.6
  • 6.0.0
  • 5.0.5
  • 6.0.0-rc
  • 5.0.4
  • 6.0.0-beta
  • 5.0.3
  • 4.0.6
  • 5.0.2
  • 5.0.1
  • 4.0.5
  • 5.0.0
  • 4.0.4
  • 5.0.0-rc2
  • 5.0.0-rc1
41 results

doxygen.php

Blame
  • Venues.java 1.27 KiB
    package assignment2;
    
    
    
    public class Venues {
    
    		private String venueCode;
    		private String name;
    		private String address;
    		private int capacity;
    		
    		
    		public Venues(String venueCode, String name, String address, int capacity){
    			this.setVenueCode(venueCode);
    			this.setName(name);
    			this.setAddress(address);
    			this.setCapacity(capacity);
    		}
    
    
    		public String getVenueCode() {
    			return venueCode;
    		}
    
    
    		public void setVenueCode(String venueCode) {
    			this.venueCode = venueCode;
    		}
    
    
    		public String getName() {
    			return name;
    		}
    
    
    		public void setName(String name) {
    			this.name = name;
    		}
    
    
    		public String getAddress() {
    			return address;
    		}
    
    
    		public void setAddress(String address) {
    			this.address = address;
    		}
    
    
    		public int getCapacity() {
    			return capacity;
    		}
    
    
    		public void setCapacity(int capacity) {
    			this.capacity = capacity;
    		}
    
    }
    
    
    
    
    /*public void readVenues (){
    String fileName = "data/Venues.dat";
    Scanner s = null;
    try {
    	s = new Scanner(new File(fileName));
    } catch (FileNotFoundException e) {
    	e.printStackTrace();
    }
    
    String venue = "";
    
    while(s.hasNext()) {
    	venue += s.next().trim();
    }
    s.close();
    
    String[] parts = venue.split(";");
    String venueCode = parts[0];
    String name = parts[1];
    String address = parts[2];
    String capacity = parts[3];
    }*/