Skip to content

Instantly share code, notes, and snippets.

@xnull
Created October 7, 2021 04:29
Show Gist options
  • Save xnull/37e3670bed17b90a5dc9738207afdb02 to your computer and use it in GitHub Desktop.
Save xnull/37e3670bed17b90a5dc9738207afdb02 to your computer and use it in GitHub Desktop.
class Main {
List<List<Integer>> tabl = new ArrayList<>();
void tablitso() {
add(tabl);
}
int find(int i, int j){
return tabl.get(i).get(j);
}
private void add(List<List<Integer>> tabl) {
for (int i = 0; i < 100; i++) {
for (int j = 0; j < 500; j++) {
tabl.get(i).set(j , 42);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment