String toBeChecked = "Einstein"; switch(toBeChecked){ case "Einstein": //... break; case "Newton": //... break; case "Edison": //... break; case "Darwin": //... break; case "Watt": //... break; default: //... }
No comments:
Post a Comment