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


  2. public class Ch11 {
  3.         static void hello(int n)
  4.        
  5.         {
  6.          for(int i=1;i<=n;i++)
  7.          {
  8.                  System.out.println("hello");
  9.          }
  10.         }
  11.         static int s(int a,int b,int c)
  12.         {
  13.                 return a+b+c;
  14.         }

  15.         public static void main(String[] args) {
  16.                 hello(4);
  17.                 System.out.println(s(3,7,3));
  18.       

  19.         }

  20. }
複製代碼

TOP

返回列表