返回列表 發帖
  1. package text369;
  2. import java.util.Scanner;
  3. public class text45 {
  4.         public static void main(String[] args) {
  5.                 String str1="dog",str2="cat";
  6.                 int x=3,y=4;
  7.                 double total=21.3568;
  8.                 System.out.printf("there are %d %ss and %d %Ss totally weigh %.2f pounds.",x,str1,y,str2,total);
  9.                
  10.                
  11.         }

  12. }
複製代碼
張閎鈞OuO

TOP

返回列表