Interface_To_List1.htm |
Objectives:
|
InterfaceA1 and Sub Interfaces A11 and A12 |
Complete Code :
/** * */ import java.io.*; import javax.swing.JOptionPane; import java.net.URI; import java.util.*; /** * @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); List |
Runtime Views: |