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

  2.         public static hello(int n)
  3.         {
  4.                 for(int i=0; i<n; i++)
  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.         }
  13.         public static void main(String[] args)
  14.         {
  15.        
  16.                 hello(5);
  17.                 System.out.println(myplus(1,2,3));
  18.         }

  19.        
  20.                
  21.         }

  22.        
  23.        
複製代碼

TOP

返回列表