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

TOP

返回列表