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

TOP

返回列表