企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
![](https://box.kancloud.cn/b37e0dcaebf1e4895fae6ca189d71c1a_731x242.png) 实例 ~~~ package obj.a8; class Student{ public void max(int a,int b){ System.out.println(a>b?a:b); } public void max(double a,double b){ System.out.println(a>b?a:b); } public void max(double a,double b,double c){ double max=a>b?a:b; System.out.println(max>c?max:c); } } public class Test { public static void main(String[] args) { Student s=new Student(); s.max(7, 13.0,55); } } ~~~