public class Test10 { public static void main(String[] args) { System.out.println("-----------------------------商城库存清单----------------------------------"); System.out.println("品牌型号 尺寸 价格 库存数"); double j=6988.88; int k=5; System.out.println("MacBookAir 13.3 "+j+" "+k); double j1=5999.99; int k1=10; System.out.println("ThinkpadT450 14.0 "+j1+" "+k1); double j2=4999.5; int k2=18; System.out.println("ASUS-FL5800 15.6 "+j2+" "+k2); int k3=k+k1+k2; System.out.print("总库存数: "+k3); double j3=j+j1+j2; System.out.print("库存商品总金额: "+j3); } }