我可以用什么方式格式化拍卖的本地日期,不断收到错误消息,要求将构造函数更改为字符串,但我需要它是 LocalDate
公共静态无效主要(字符串[]参数){
user1 = new User("fred", "fredbloggs");
user2 = new User("joe", "joebloggs");
auction1 = new Auction(1000.00, 5000.00, 2017-04-05);
auction2 = new Auction(30.00, 80.00, );
item1 = new Item("Car - Honda Civic VTI 1.8 Petrol");
item2 = new Item("Sony Bluetooth Speakers");