Skip to content

Commit a01f31c

Browse files
committed
Added Note Into Switch Statements.
Signed-off-by: Someshdiwan <[email protected]>
1 parent c13b4f0 commit a01f31c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Section7ConditionalStatements/src/SwitchCaseAB1.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
//Display name of the day based on the number.
22

3+
//The 'switch' statement cannot be used to compare string values; it only works with integral or enumeration types
4+
5+
36
import java.util.Scanner;
47

58
public class SwitchCaseAB1 {

0 commit comments

Comments
 (0)