Answers for "java see you next happy year"

0

java see you next happy year

import java.util.*;

public class HappyYear {
  static public int nextHappyYear(int year) {
    for (;;) if (new HashSet(Arrays.asList((++year+"").split(""))).size() == 4) return year;
  }
}
Posted by: Guest on November-25-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language