返回列表 發帖
  1. public class Ch50 {

  2.     static void hello(int n){
  3.             for(int i=0; i<n; i++)
  4.         {
  5.                 System.out.println("hello");
  6.         }
  7.     }
  8.     static int myPlus(int a,int b, int c){
  9.            
  10.             return a+b+c;
  11.     }

  12.         public static void main(String[] args){
  13.                 hello(5);
  14.                 System.out.println(myPlus(1,3,5));
  15.         }

  16. }
複製代碼
May

TOP

返回列表