返回列表 發帖
  1. package o;

  2. import java.util.Scanner;

  3. import java.util.*;
  4. public class foraddfinal
  5. {
  6.        
  7.                 static void hello (int n)
  8.                 {
  9.                         for (int i=0;i<n;i++)
  10.                                 System.out.println("Hello!!!!");
  11.                 }
  12.                 static int myPlus(int a,int b,int c)
  13.                 {
  14.                         return a+b+c;

  15.                 }
  16.                 public static void main(String args[])

  17.                 {
  18.                         hello(5);
  19.                         System.out.println(myPlus(1,2,3));

  20.                 }
  21.         }
複製代碼

TOP

返回列表