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

TOP

返回列表