返回列表 發帖
  1. public class Ch222 {
  2.         static void hello(int x)
  3.         {
  4.                 for(int i=0; i<x; i++)
  5.                         System.out.println("H E L L O ! !");
  6.         }
  7.         static int uniPlus(int a, int b, int c)
  8.         {
  9.                 return a*3+b*2+c;
  10.         }

  11.         public static void main(String[] args) {
  12.         hello(5);
  13.         System.out.println(uniPlus(1,2,3));

  14.         }

  15. }
複製代碼

TOP

返回列表