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

TOP

返回列表