class A {
public void f(){
System.out.println("英文字母大写:");
for(char d='A';d<='Z';d++){
System.out.println(d);
}
System.out.println("英文字母小写:");
for(char d='a';d<='z';d++){
System.out.println(d);
}
}
}
class B extends A{
public void g(){
System.out.println("希腊字母大写:");
for (char i = 'α' - 32; i <= 'ω'-32; i++)
{
System.out.println(i);
}
System.out.println("希腊字母小写:");
for(char i='α';i<='ω';i++)
{
System.out.println(i);
}
}
}
public class vvde
{
public static void main(String[] args){
B b = new B();
System.out.println("打印英文字母大写和小写:");
b.f();
System.out.println();
System.out.println("打印希腊字母大写和小写:");
b.g();
}
}