#Fix - Schreibfehler bei loadProductandParse
statt lines.split() muss: line.split()main
parent
91cc4f9d03
commit
2d5e63d6d0
|
|
@ -27,7 +27,7 @@ public class OnlineShop {
|
|||
public void loadProductsAndParse(ArrayList<String> lines){
|
||||
for (int i = 1; i < lines.size(); i++){
|
||||
String line = lines.get(i);
|
||||
String[] partsOfList = lines.split(",");
|
||||
String[] partsOfList = line.split(",");
|
||||
int id = Integer.valueOf(partsOfList[0]);
|
||||
String name = partsOfList[1];
|
||||
double weight = Double.valueOf(partsOfList[2]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue