Search
 
SCRIPT & CODE EXAMPLE
 

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;
  }
}
Comment

PREVIOUS NEXT
Code Example
Java :: Share Icon/Button 
Java :: JAVA Printing Variables and Literals 
Java :: find min max and average arraylist 
Java :: The JCheckBox and JComboBox classes belong to which package? 
Java :: java to exe 
Java :: geometric primitive 
Java :: java how to assign alphabet letter a score 
Java :: default access modifier java 
Java :: do you have to implement all methods of an interface java 
Java :: Returning an Array from a Method 
Java :: Java Another form of assertion statement 
Java :: java console readline null pointer exception 
Java :: Calling the Pre-Defined Method in Java 
Java :: how to create an indefilite loop in java 
Java :: android studio analyze apk 
Java :: findby(xpath selenium java) 
Java :: Java Access Specifier in Overriding 
Java :: Sample TreeMap 
Java :: Java Default capacity and load factor 
Java :: how to declare an array list of a clas 
Java :: java konsolenausgabe 
Java :: multiple recyclerview not scrolling bottom sheet 
Java :: java static inner class 
Java :: sudoku 6x6 java 
Java :: .int x=5; final int y=7; x=x+10; y=y+10; 
Java :: set countdown timer to play audio file android studio 
Java :: adding entity to calenderfx 
Java :: android api 21 join list of strings 
Java :: edit activity main drawer items text color android 
Java :: java set get all not containing 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =