Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Switch {
- public static void main(String[] args) {
- switch(42) {
- case (1/0):
- return;
- default:
- return;
- }
- }
- }
- Switch.java:4: error: constant expression required
- case (1/0):
- ^
- 1 error
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement