I want to initialize two dimensional array in constructor. But, I have a problem when I declare instance variable of array in class. It will be error if I make it like this:
public class Data {
private String [][] tabel;
public Data(){
tabel = {{"ID", "NAME"},
{"101", "Max"},
{"102", "Mark"},
{"103", "Downey"},
{"104", "Matthew"},
{"105", "Richard"}};
}
How I can solve this problem?