返回列表 發帖
  1. public class Ch01
  2. {
  3.                 static void hello(int n)
  4.                 {
  5.                         for(int i=0;i<n;i++)
  6.                         {               
  7.                                 System.out.println("hello!!!!!!!!");
  8.                         }
  9.                 }
  10.                 static int myPlus(int a,int b,int c)
  11.                 {
  12.                         return a+b+c;
  13.                 }

  14.         public static void main(String[] args)
  15.         {
  16.              hello(5);
  17.              System.out.println(myPlus(1,2,3));
  18.             

  19.         }

  20. }
複製代碼

TOP

返回列表