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

TOP

返回列表