一、实验目的熟悉并掌握接口、内部类、抽象类的声明及使用。二、预习内容1抽象类2接口的定义及使用3内部类的定义、使用三、实验设备与环境1.Java开发包JDK2.开发软件 (IDEA)1.设计一个求3个整数最大值的类要求1在外部类中设计一个求2个整数最大值的成员内部类利用该成员内部类的对象实现求3个整的的最大值2 设计测试类输出随意3个整数的最大值。提示类的结构及参考代码如下public class Max3int { public int a,b,c; Max3int () { …… } Max3int (int a,int b,int c) { …… } public int getmax() { …… } public class Max { int x,y; Max(int x,int y) { …… } public int getmax() { …… } } }四、有关内部类的知识五、实验参考代码package Shiyan.duizhan.niebulei; class Max3int { public int a,b,c; Max3int () { } Max3int (int a,int b,int c) { this.aa; this.bb; this.cc; } public class Max { int x,y,max3; Max(){ } Max(int x,int y) { this.xx; this.yy; } public int get2max() { max3x; if(xy){ max3y; } return max3; } } public int get3max() { Max max3new Max(a,b); int m1 max3.get2max(); Max max4new Max(m1,c); int m2max4.get2max(); System.out.println(三个数中最大的是m2); return 0; } } public class Niebulei { public static void main(String[] args) { Max3int max1new Max3int(10,15,9); max1.get3max(); } }六、运行示例