3:59 am - Monday February 20, 2017

sample

CANDID INDUSTRIAL TRAINING -- CHENNAI
Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044

  package SecondTask;

       import java.util.Collections;
       import java.util.SortedSet;
       import java.util.TreeSet;
 
       public class SynchronizedShortedtst {
       public static void main(String[] args) {
            //create the set
            SortedSet<String> set=new TreeSet<String>();
            //populate the set
            set.add("sivan");
            set.add("kannan");
            set.add("sathi");
            set.add("karthi");
            //create synchronized sorted test
            SortedSet<String> sorset=Collections.synchronizedSortedSet(set);
            System.out.println("sorted set is: "+sorset);
            
        }
 
       }

Filed in: Z-A All Java Codes

Comments are closed.