返回列表 發帖
  1. public class Ch000
  2. {
  3.     static void hello(int a)
  4.     {
  5.             for(int i=0; i<a; i++)
  6.                     System.out.println("Hello!!!");                  
  7.     }
  8.     static int myPlus(int x, int y ,int z)
  9.     {          
  10.                     return x+y+z;               
  11.     }           
  12.         public static void main(String args[])
  13.     {        
  14.            hello(10);
  15.            System.out.println(myPlus(33, 66, 12));
  16.     }
  17. }
複製代碼

TOP

返回列表