Skip to content

Commit b706554

Browse files
Correct information about examples
1 parent bcbe738 commit b706554

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/jvm-interop/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This example shows how to use `pragmatic` library from java or kotlin.
44

55
# Usage
66

7-
- Build `vrp-pragmatic` crate
7+
- Build `vrp-cli` crate
88
- Copy build artifact to resources
99
- Prepare problem and routing matrix files in `pragmatic` format
1010
- Run one of examples specifying paths to problem and matrix(-ces) files

examples/jvm-interop/src/main/java/vrp/example/java/Application.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static void main(String[] args) throws IOException {
3838
String problem = new String(Files.readAllBytes(Paths.get(args[0])));
3939
String[] matrices = new String[args.length - 1];
4040
for (int i = 1; i < args.length; i++) {
41-
matrices[i] = new String(Files.readAllBytes(Paths.get(args[i])));
41+
matrices[i - 1] = new String(Files.readAllBytes(Paths.get(args[i])));
4242
}
4343

4444
Solver solver = Native.load("vrp_cli", Solver.class);

0 commit comments

Comments
 (0)