赞助

定于语法:

pubilc static void 函数名称(){

//函数主体

}

函数定义在类的内部,与main函数并列 

 

 

 

 

 形参与实参

 

 

 

 

posted on 2022-04-10 17:13  Tsunami黄嵩粟  阅读(24)  评论(0)    收藏  举报