package lianxi; public interface InterfaceA {
void printCapitalLetter(); }
package lianxi; public interface InterfaceB {
void printLowercaseLetter();
}
package lianxi; public class Print1 implements InterfaceA, InterfaceB { @Override
public void printLowercaseLetter() {
for (int i = 97; i < 123; i++) {
System.out.print((char)i); }
System.out.println();
} @Override
public void printCapitalLetter() {
for (int i =65; i < 91; i++) {
System.out.print((char)i); }
System.out.println();
} }
package lianxi; public class E { public static void main(String[] args) { InterfaceA a=new Print1();
InterfaceB b=new Print1();
a.printCapitalLetter();
b.printLowercaseLetter(); } }