返回列表 發帖
  1. public class AS02 {

  2.         public static void main(String[] args) {
  3.                 String a="dog", b="cat";
  4.                 int x=7, y=4;
  5.                 double n=35.1493;
  6.                 System.out.printf("There are %d %Ss and %d %ss and totally weight %.2f pounds",x,a,y,b,n);

  7.         }

  8. }
複製代碼

TOP

返回列表