I have a class and in the constructor I am constructin a
string array.
Class X {
String TaxTypes[];
X(){
new TaxTypes[16] = {"FED","state_1","city_1","tax1","tax2","tax3","tax4","tax5","tax6","tax7","tax8","tax9","tax10","tax11","tax12","tax13"};
}
I am getting the following error (pointer near tax11)
illegal start of expression
new TaxTypes[17] = {"FED","state_1","city_1","tax1","tax2","tax3","tax4","tax5","tax6","tax7","tax8","tax9","tax10","tax11","tax12","tax13"};
^
Can anyone please help me to resolve this issue.
Thanks,
Kashyap