Comment on Tutorial - compare() example in Java By Emiley J



Comment Added by : Siddhesh Khedekar

Comment Added at : 2009-10-27 00:14:17

Comment on Tutorial : compare() example in Java By Emiley J
in statment -
new Treeset<String> (new MyComp());

why is new MyComp() written in bracket wjhat is does?


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. I have my application running on server that is th
View Tutorial          By: vitamin b12 at 2009-12-04 10:51:56

2. I writing a main class in the eclipse IDE and call
View Tutorial          By: adam lim at 2013-03-11 04:13:51

3. Hey there, I was needing something exactly like th
View Tutorial          By: Jeffry at 2013-03-26 03:33:27

4. can anybody hp me how to create a rms database in
View Tutorial          By: contractornimesh at 2011-01-04 00:12:08

5. cool.
View Tutorial          By: Fahad Palomo at 2011-08-03 06:19:56

6. The above example for abstract class is very good.
View Tutorial          By: saafia at 2013-08-19 14:33:54

7. Thanks, it solved my problem with "sun.securi
View Tutorial          By: haasdg at 2013-10-29 14:12:51

8. "Type safety: The method add(Object) belongs
View Tutorial          By: WalterB Ntuli at 2010-04-09 01:51:17

9. my query is like this: " accept a string, cou
View Tutorial          By: samtopper at 2014-07-31 17:40:25

10. program is very long
View Tutorial          By: ajit kumar at 2012-04-21 03:57:13