返回列表 發帖
  1. package hi87;

  2. import java.util.Scanner;
  3. public class JPA02 {
  4.         static Scanner s=new Scanner(System.in);
  5.    
  6.     public static void main(String[] args) {
  7.         test();
  8.         test();
  9.     }
  10.    
  11.     public static void test() {
  12.             System.out.print("Please enter score :");
  13.             Scanner s=new Scanner(System.in);
  14.             int ss=s.nextInt();
  15.             if(ss>=60)
  16.             {
  17.                     System.out.println("You pass");
  18.            
  19.             }       
  20.             System.out.println("End");
  21.     }
  22. }
複製代碼

TOP

返回列表