Simple TreeSet
Example

import java.io.*;
import java.util.List;
import java.util.Arrays;// to use arrays
import java.util.*;// Arrays.sort
public class Test_This {
public static void main(String[] args) throws IOException{
// TODO Auto-generated method stub
Process p1 = new Process();
p1.method_1();
}
}
class Process
{
String first[] = {"Java","A+","C#","XML","JSP","PHP","Z", "C#"};
//to be used with set add all change other wise
String[] second = {"0.0","0.1","0.2","0.3","0.2","0.4"};
public Process()
{
System.out.println("Default) constructor");
}
public void method_1()
{
Set set = new TreeSet();
//for( int i = 0; i < 5; i++)
for(String s1 : second)
{
set.add(s1);
}
System.out.println(set);
Iterator it = set.iterator();
}
}

In the following example, we used simple iteration to print the nodes.
Example

import java.io.*;
import java.util.List;
import java.util.Arrays;// to use arrays
import java.util.*;// Arrays.sort
public class Test_This {
public static void main(String[] args) throws IOException{
// TODO Auto-generated method stub
Process p1 = new Process();
p1.method_1();
}
}
class Process
{
//String first[] = {"Java","A+","C#","XML","JSP","PHP","Z", "C#"};
//to be used with set add all change other wise
String[] second = {"0.0","0.1","0.2","0.3","0.2","0.4"};

public Process()
{
System.out.println("Default) constructor");
}
public void method_1()
{

TreeSet set = new TreeSet();

//for( int i = 0; i < 5; i++)
for(String s1 : second)
{

set.add(s1);
}
System.out.println(set);
Iterator it = set.iterator();
while(it.hasNext())
{
System.out.println(it.next());
}
}
}