내가 문자열로 생성자를 변경을 요청하는 오류가 계속하지만 난 그것이 LOCALDATE에게LOCALDATE 형식
공공 정적 무효 메인 (문자열 []에 인수) 할 필요가, 경매에 대한 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");
[DateFormatter] (https://docs.oracle.com/javase/7/docs/api/javax/swing/text/DateFormatter.html)는 친구입니다 – Jens
스윙을 사용하지 않는다면 [ 'DateTimeFormatter'] (http://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html) –
내 경매 클래스의 생성자에서이를 사용해야합니까? –