Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

compare function in java

 	   SimpsonCharacter homer = new SimpsonCharacter("Homer") {
            @Override
            public int compareTo(SimpsonCharacter simpson) {
                return this.name.length() - (simpson.name.length());
            }
        };
Source by www.infoworld.com #
 
PREVIOUS NEXT
Tagged: #compare #function #java
ADD COMMENT
Topic
Name
5+9 =