返回列表 發帖
  1. public class Ch10
  2. {
  3.     static void hello(int n)
  4.     {
  5.             for(int i=0;i<n;i++)
  6.                     System.out.println("Hello!!!");
  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.             hello(2);
  16.             System.out.println(myPlus(468,855,534));
  17.     }
  18. }
複製代碼

TOP

返回列表