Skip to content
Snippets Groups Projects
Commit 36bdff98 authored by COUETOUX Basile's avatar COUETOUX Basile
Browse files

inverse value weight

parent 5ac29dc1
No related branches found
No related tags found
No related merge requests found
...@@ -17,8 +17,8 @@ public class Reader { ...@@ -17,8 +17,8 @@ public class Reader {
List<Item> items = new ArrayList<>(); List<Item> items = new ArrayList<>();
double weight,value; double weight,value;
while(scanner.hasNext()){ while(scanner.hasNext()){
value = scanner.nextDouble();
weight = scanner.nextDouble(); weight = scanner.nextDouble();
value = scanner.nextDouble();
items.add(new Item(weight,value)); items.add(new Item(weight,value));
} }
return new Instance(bound,items); return new Instance(bound,items);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment