Example & Tutorial understanding programming in easy ways.

Simple Example of TreeSet class in Java .

import java.util.*;

class Test4{

public static void main(String args[]){

TreeSet ts=new TreeSet();

ts.add("Hello");

ts.add("My");

ts.add("Java");

ts.add("Hello");

Iterator itr=ts.iterator();

while(itr.hasNext()){

System.out.println(itr.next());

} } }

Output: Hello
               Java
               My

Read More →
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!