返回列表 發帖
  1. import java.util.Scanner;
  2. public class Ch50 {
  3.         public static void main(String[] args){
  4.         int a = 3,b = 5;
  5.                 String str1 = "cat",str2="dog";
  6.                 double total = 45.213568;
  7.                 System.out.printf("There are %d %ss and %d %SS totally weigh %.2f pounds.",a,str1,b,str2,total);
  8.         }
  9. }
複製代碼
May

TOP

返回列表