重点在于封装package cn.javaStudy.CodeDemo01;import java.util.Arrays;
import java.util.Scanner;/*** className: TestDemo01* author: **** date: 2025/8/30 11:07* version: 0.1* since: jdk17* description:*/
public class TestDemo01 {public static ShoppingCar shop…