Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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;
  }
}
 
PREVIOUS NEXT
Tagged: #java #happy #year
ADD COMMENT
Topic
Name
2+3 =