返回列表 發帖
  1. public class Ch01 {
  2.         static void sayHello(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.                 return a+b+c;
  8.         }
  9.         public static void main(String[] args) {
  10.                 sayHello(5);
  11.                 System.out.println(myPlus(1,2,3));
  12.         }
  13. }
複製代碼

TOP

返回列表