public static void main(String[] args) {
		
		String[] days = {"Monday" , "Tuesday" , "Wednesday" , "Thursday" , "Friday" , "saturday" , "sunday"};
		
		// Displays the days of the week in order.
		
		for(int i = 0 ; i < days.length ; i++){
			
			System.out.println(days[i]);
			
		}
		
		System.out.println();
		
		
		// Displays every other day of the week.
		
		for(int i = 0 ; i < days.length ; i = i + 2){
					
			System.out.println(days[i]);
			
		}
		
		System.out.println();
		
		
		// Displays only the first two days.
			
		for(int i = 0 ; i < 2 ; i++){
			
			System.out.println(days[i]);
			
		}
			
		System.out.println();
		
		
		// Displays the days of the week in reverse order.
		
		for(int i = 6 ; i > -1 ; i--){
		
			System.out.println(days[i]);
			
		}
		
		System.out.println();
		
		
		// Displays the days of the week starting with "S".
		
		for(int i = 0 ; i < days.length ; i++){
					
			if(days[i].startsWith("S") || days[i].startsWith("s")){
			
				System.out.println(days[i]);
				
			}	
			
		System.out.println();
			
		}
		
		
		// Displays the days of the week from an ArrayList.
		
		List<String> daysList = Arrays.asList("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday");
		
		for(int i = 0 ; i < daysList.size() ; i++){
			
			System.out.println(daysList.get(i));
			
		}
					
	}