Perhaps you mean something like:


public class FallThroughSwitch {

public static void main(String[] args) {

for (int i = 20; i <= 40; i++) {
switch (i) {
...