返回列表 發帖
  1. public class Ch51 {
  2.         static void helloHello(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.                 helloHello(5);
  11.                 System.out.println(myPlus(1, 8, 4));
  12.         }
  13. }
複製代碼

TOP

返回列表