package test1;public class diaoyong { /**
 * @param args
 */
 static int max(int a,int b)
{
int c=a*a+b*b;
return c;
}
static int min(int a, int b){
return(a>b?a:b);
}
public static void main(String[] args) {
// TODO Auto-generated method stub
        int x=30;
        int y=20;
        diaoyong test1= new max(x,y);
        System.out.print("20和30的平方和:"+test1);
        diaoyong test3 = new min(x,y);
        System.out.print("30与20谁大?"+test3);
}}
运行显示:Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
max cannot be resolved to a type
min cannot be resolved to a type at test1.diaoyong.main(diaoyong.java:20)
====================================================================================希望有人能 帮助我/xiexie