Advertisement
absorr

Lesson 10 Q7

Aug 4th, 2014
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.27 KB | None | 0 0
  1. switch (speed)
  2. {
  3.     case 75:
  4.         System.out.println("Exceeding speed limit");
  5.         break;
  6.     case 69:
  7.     case 70:
  8.         System.out.println("Getting close");
  9.         break;
  10.     case 65:
  11.         System.out.println("Cruising");
  12.         break;
  13.     default:
  14.         System.out.println("Very slow");
  15.         break;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement