CAN WE USE SWITCH STATEMENTS WITH STRING

Strings in switch: Beginning with JDK 7, we can use a string to control a switch statement, which is not possible in C/C++. Ex 1: Output: two Ex 2: Output: No of Month: 10 Ex 3: Same program – cases in same line: Output: This is boys name Ex 4: Output: Working Day Ex 5:Continue reading “CAN WE USE SWITCH STATEMENTS WITH STRING”

Design a site like this with WordPress.com
Get started