package com.hanqi.test;

public class ChongZai {
void print()
{
System.out.println("无参数");
}
void print(double a)
{
System.out.println(a);
}
void print(String b)
{
System.out.println(b);
}

}

//主类
package com.hanqi.test;

public class TestChongzai {

public static void main(String[] args) {
	
	
	ChongZai a=new ChongZai();
	a.print();
	a.print(5.5);
	a.print(" adcd");
	

}

}

//结果
无参数
5.5
adcd

相关文章:

  • 2021-06-18
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
  • 2021-09-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案