I need some help with this block of code in java for this getter:
The workday is divided into two shifts: day and night. the day shift is shift 1 and the night shift is shift 2. I'll post the full code is this doesn't help.
	
	
	
		
Second attempt
	
	
	
		
				
			The workday is divided into two shifts: day and night. the day shift is shift 1 and the night shift is shift 2. I'll post the full code is this doesn't help.
		Code:
	
	public int getShift() {
		
		
		if (shift == 1){
			return "Day";
		} else if (shift == 2){
			return "Night";
		}
		
		
			
	
	}Second attempt
		Code:
	
	public String getShift() {
		
		String day = "Day";
		String night = "Night";
		if (shift == 1){
			return day;
		} else if (shift == 2){
			return night;
		}
		
		
			
	
	} 
	 
				 
 
		 
	 
	 
 
		 ).
 ). 
 
		 .I'll do my best at explaining, I'm still new at this.
.I'll do my best at explaining, I'm still new at this.