返回列表 發帖
  1. public class Ch50{
  2.          
  3.             static void hello(int n){
  4.                     for(int i=0;i<n;i++)
  5.                             System.out.println("Hello!!!");
  6.             }
  7.             static int myPlus(int a, int b, int c){
  8.                     return a+b+c;
  9.             }

  10.         public static void main(String[] args) {
  11.                 hello(5);
  12.                 System.out.println(myPlus(1, 2, 3));
  13.                 }
  14.         }
  15.       
複製代碼

TOP

返回列表