ArrayList<OrderItem> lst = new ArrayList<OrderItem>();//我猜:LZ的数组元素类型应该是<OrderItem>
lst.add(new OrderItem("fdsfs",12.3,3));
[Quote=引用 6 楼 的回复:]
三楼的大哥这个方法是不行的呀
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
The method add(int, Object) in the type ArrayList is not applicable for the arguments (String, double, i……
[/Quote]
[Quote=引用 6 楼 的回复:]
三楼的大哥这个方法是不行的呀
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
The method add(int, Object) in the type ArrayList is not applicable for the arguments (String, double, in……
[/Quote]
三楼的大哥这个方法是不行的呀
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
The method add(int, Object) in the type ArrayList is not applicable for the arguments (String, double, int)