Skip to content

Commit

Permalink
fix array indexing (copied from @bpontleve)
Browse files Browse the repository at this point in the history
  • Loading branch information
darkv committed Feb 7, 2017
1 parent 2a9bdbb commit a7b57ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2175,7 +2175,7 @@ public static String[] toStringArray(List<?> array) {
int size = array.size();
String[] b = new String[size];
for (int i = size; i > 0; i--) {
b[i] = array.get(i).toString();
b[i - 1] = array.get(i - 1).toString();
}
return b;
}
Expand Down

0 comments on commit a7b57ba

Please sign in to comment.