返回列表 發帖
  1. import java.util.*;

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

TOP

返回列表