输出
代码
public class homework {
public static void main(String[] args){
String LenonXiaoXin ="LenonXiaoXin";
double LenonSize = 13.0;
double LenonPrice = 4999.0;
String LenonConfig = "i5 处理器 4GB 内存 128G 固态硬盘";
int lenonCount = 29;
String macBrand = "MacBookAir";
double macSize = 13.3;
double macPrice = 10000.99;
String macConfig = "i5 处理器 4GB 内存 500G 固态硬盘";
int macCount = 5;
String thinkpadBrand = "ThinkpadT450";
double thinkpadSize = 14.0;
double thinkpadPrice = 3299.99;
String thinkpadConfig = "i5 处理器 4GB 内存 500G 硬盘";
int thinkpadCount = 10;
System.out.println("-----------------------------商城库存清单---------------------------");
System.out.println("型号 尺寸 价格 配置 库存数 ");
System.out.println( LenonXiaoXin +" "+ LenonSize +" "+LenonPrice+" "+LenonConfig+" "+lenonCount+" " );
System.out.println( macBrand +" "+ LenonSize +" "+macPrice+" "+macConfig+" "+macCount+" " );
System.out.println( thinkpadBrand +" "+ thinkpadSize +" "+thinkpadPrice+" "+thinkpadConfig+" "+thinkpadCount+" " );
System.out.println("------------------------------------------------------------------");
System.out.println("总数:44");
System.out.println("商品金额:18299.98");
}
}