csv file data structure java
List<List<String>> csv = new ArrayList<>();
//Generic answer
csv file data structure java
List<List<String>> csv = new ArrayList<>();
//Generic answer
csv file data structure java
if you have a lot of holes in you CSV use the comparable as your coordinate
public class Coordinate implements Comparable<Coordinate> {
public int row;
public int column;
public Coordinate(int r, int c) {
row = r;
column = c;
}
@Override
public int compareTo(Coordinate o) {
int r = Integer.compare(row, o.row);
if(r == 0) {
r = Integer.compare(column, o.column);
}
return r;
}
public boolean equals(Object o) {
if(o instanceof Coordinate) {
Coordinate c = (Coordinate)o;
return row == c.row && column == c.column;
}
return false;
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us