返回列表 發帖

TQC+ 101 字串列印


本帖隱藏的內容需要回復才可以瀏覽

  1. public class JPA01 {
  2.     public static void main (String args[]) {
  3.         System.out.println("I love Java!");
  4.         System.out.println("Java is so good!");
  5.     }
  6. }
複製代碼

TOP

  1. public class JPA01 {
  2.     public static void main (String args[]) {
  3.         System.out.println("I love Java!");
  4.         System.out.println("Java is so good!");
  5.     }
  6. }
複製代碼

TOP

  1. public class JPA01 {
  2.     public static void main(String args[]) {
  3.         System.out.println("I love Java!");
  4.         System.out.println("Java is so good!");
  5.     }
  6. }
複製代碼

TOP

  1. public class JPA01 {
  2.     public static void main (String args[]) {
  3.         System.out.println("I love Java!");
  4.         System.out.println("Java is so good!");
  5.     }
  6. }
複製代碼

TOP

  1. public class JPA01 {
  2.     public static void main (String args[]) {
  3.         System.out.println("I love Java!");
  4.         System.out.println("Java is so good!");
  5.     }
  6. }
複製代碼

TOP

  1. public class JPA01 {
  2.     public static void main (String args[]) {
  3.         System.out.println(I love Java!);
  4.         System.out.println("Java is so good!");
  5.     }
  6.   }  
複製代碼

TOP

  1. public class JPA01 {
  2.     public static void main (String args[]) {
  3.         System.out.println("I love Java!");
  4.         System.out.println("Java is so good!");
  5.     }
  6. }
複製代碼

TOP

  1. public class JPA01
  2. {
  3.     public static void main (String args[])
  4.     {
  5.         System.out.println("I love Java!");
  6.         System.out.println("Java is so good!");
  7.     }
  8. }
複製代碼

TOP

  1. public class JPA01 {
  2.     public static void main (String args[]) {
  3.         System.out.println("I love Java!");
  4.         System.out.println("Java is so good!");
  5.     }
  6. }
複製代碼

TOP

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

TOP

  1. package zzz;

  2. public class zzz {

  3.         public static void main(String[] args) {
  4.                  System.out.println("I love Java!");
  5.                 System.out.println("Java is so good!");

  6.         }

  7. }
複製代碼
  1. package zzz;

  2. public class zzz {

  3.         public static void main(String[] args) {
  4.                  System.out.println("I love Java!");
  5.                 System.out.println("Java is so good!");

  6.         }

  7. }
複製代碼

TOP

  1. public class JPA01 {
  2.     public static void main (String args[]) {
  3.         System.out.println(I love Java!);
  4.         System.out.println("Java is so good!");
  5.     }
  6.   }
  7. public class JPA01 {
  8.     public static void main (String args[]) {
  9.         System.out.println(I love Java!);
  10.         System.out.println("Java is so good!");
  11.     }
  12.   }
複製代碼

TOP

RE: TQC+ 101 字串列印 複習1

  1. public class JPA01
  2. {
  3.     public static void main(String args[])
  4.     {
  5.         System.out.println("I love Java!");
  6.         System.out.println("Java is so good!");
  7.     }
  8. }
複製代碼

TOP

RE: TQC+ 101 字串列印 複習1

  1. public class JPA01
  2. {
  3.     public static void main(String args[])
  4.     {
  5.         System.out.print("I love Java!");
  6.         System.out.print("Java is so good!");   
  7.     }
  8. }
複製代碼

TOP

返回列表