请问一下
public static int showString(ArrayList<Integer> arrayList)
{
static int counter=0;
System.out.println("_________________________________________________");
System.out.println("arraysize is="+arrayList.size());
char[] CH = new char[arrayList.size()];
for (int loop = 0; loop < arrayList.size(); loop++) {
CH[loop] = byteAsciiToChar(arrayList.get(loop));
}
请问我在JAVA的方法里面设定一个静态变量static int counter
为什么显示语法错误???
而且我在Main()里面写static counter=0一样不可以??WHY??