Generalization


#1

after this exercise next button is not working.....


#2

Hey!
I am facing the same issue.
Also, although I change the code according to the instructions, on the right side I don't see the right message. I get: "I'm not sure where that train goes..." instead of "This is a Brooklyn bound train!". And off course, I can neigher continue to the next exercises. Can you please help?

int subwayTrain = 5;

	switch (subwayTrain){

		case '1': System.out.println("This is a South Ferry bound train!");
							break; 
		case '5': System.out.println("This is a Brooklyn bound train!");
							break;
		case '7': System.out.println("This is a Queens bound train!");
							break;
		default:
			System.out.println("I'm not sure where that train goes...");

	}

#3

There is a difference between:

 5 - an int

and

'5' - a string

Do you see the issue now?


#4

YEAH! :smile: Thank you for taking time!