Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132938 views
License: OTHER
1
public class SwitchContinue {
2
enum Direction {
3
RECHTS, UNTEN, OBEN, LINKS
4
}
5
6
public static void main(String[] args) {
7
Direction direction = Direction.RECHTS;
8
9
switch (direction) {
10
case RECHTS:
11
direction = Direction.UNTEN;
12
continue;
13
case UNTEN:
14
direction = Direction.LINKS;
15
break;
16
}
17
}
18
}
19
20