返回列表 發帖
  1. public class z {
  2.         public static void main(String[] args)
  3.         {
  4.                 String dog = "dog", cat = "cat";
  5.                 int three = 3, five = 5;
  6.                 double total = 21.3568;
  7.                 System.out.printf("there are %d %ss and %d %Ss totally weigh %.2f pound.", three,dog, five, cat,total);
  8.         }
  9. }
複製代碼

TOP

返回列表