InterfaceTo_Set1
 
http://tutorials.jenkov.com/java-collections/iterable.html

Complete Code:

/**
*
*/
import java.io.*;

import javax.swing.JOptionPane;

import java.net.URI;
import java.util.*;
import java.util.Map.Entry;
/**
* @author Manas9
*
*/
public class ClassTemplate1 {
/**
*
*/
public ClassTemplate1() {
// TODO Auto-generated constructor stub
}
public static void main(String[] args)
throws Exception {
// TODO Auto-generated method stub]
try {
//Process pp = new Process();
System.out.println(Process.a1face1);
System.out.println(Process.a1face1);
Process.roller();
//
} catch (NumberFormatException exc) {
//Process
}
}
}// end of class template
//
//Process implements interface A1
class Process implements A1
{
public Process()
{ System.out.println("Default) constructor");}
public static void roller()
{
String a1 = A11.first[0];String a12 = A12.first[0];
System.out.println(a1 + " "+ a12);
Set<String>set1 = new HashSet<String>();
Set<String>set2 = new HashSet<String>();
for(String s1 : A11.first)
{ set1.add(s1); }
System.out.println(set1);
for(String s2 : A12.first)
{ set2.add(s2); }
System.out.println(set2.toString());
}
}// end of Class Process
// interfaces
interface A1 {
int a1n1 = 10;
String a1face1 = A11.a11face1;
String a1face2 = A12.a11face1;
String[] str1 = (A11.first);
String[] str2 = (A12.first);
interface A11{
int a11n1 = 20;
String a11face1 = "Common A11 interface";
String first[] = {"Java","A+","C#","XML",
"JSP","PHP","Z", "C#"};
}
interface A12{
int a11n1 = 20;
String a11face1 = "Common A11 interface";
String first[] = {"Oracle","sybase","MySQL",
"SQLLite","Json","CSV","ACCESS", "SQLServer"};
}
}

Runtime View :