3 ms·
In the case of arrays, you can also have parallel arrays. E.g.: class Something { public int foo; public int bar; } new SomeThing[100]; becomes
by danieldk 12y ago
In the case of arrays, you can also have parallel arrays. E.g.:
class Something {
public int foo;
public int bar;
}
new SomeThing[100];
becomes:
int[] foos = new int[100];
int[] bars = new int[100];
And write appropriate getters/setters.