Hi guys!

So in my project we are not allowed to use break or continue statements. I have 3 switches that all follow the same format as the one below. It's kind of lame I've been using switches for all my projects and the deadline is coming up. I was stupid and didn't read the rubric fully.

I know I should be better versed in if else ,but I just haven't had to use them ,and I feel dumb for asking for this help ,but I'm a little desperate.



<	
 
System.out.print("Enter the type of link to look for (1--5)\n 1. Images (PNG, JPG, BMP, GIF)\n 2. Documents (DOC, TXT, PDF)\n 3. Hypertext (HTM, HTML)\n 4. All Links\n 5. Quit \n");
		System.out.print("->");
		numberSelection = keyboard.nextInt();
	}
 
 
 
switch (numberSelection)
	{
	case 1:
	{
		System.out.println("\nSearching "+ command);
		System.out.println("Searching for: images\n");
		break;
	}
	case 2:
	{
		System.out.println("\nSearching "+ command);
		System.out.println("Searching for: documents");
		break;
	}
	case 3:
	{
		System.out.println("\nSearching "+ command);
		System.out.println("Searching for: hypertext");
		break;
	}
	case 4:
	{
		System.out.println("\nSearching "+ command);
		System.out.println("Searching for: all Links");
		break;
	}
	case 5:
	{
		System.out.println("Goodbye!");
		System.exit(0);
		break;
	}
	}
>