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

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

TOP

返回列表