News for hackers. Stuff that matters.
Re:Java 12 by gsu on Tuesday March 19, 2019 @06:52PM (#19436952)
switch assignment:

  int numLetters = switch (day) {
      case MONDAY, FRIDAY, SUNDAY -> 6;
      case TUESDAY                -> 7;
      case THURSDAY, SATURDAY     -> 8;
      case WEDNESDAY              -> 9;
  };

There are no comments on this comment yet.