NZEC error in java.

Can anyone help in removing the nzec error from the following code?

import java.util.*;

class tele
{
int z=0,str[],n=0;
long arr[];
void cal()
{
Scanner sc=new Scanner(System.in);
int t=sc.nextInt();
while(t–>0)
{
n=sc.nextInt();
int i=0,l=Integer.parseInt(""+n);
arr=new long[n];
str=new int[n];Arrays.fill(str,-1);
for(i=0;i<n;i++)arr[i]=sc.nextLong();
for(i=0;i<n-1;i++)
{
if(arr[i]!=arr[i+1])
store(i);
}
System.out.println(z);
}
}
public static void main(String []as)
{
tele t=new tele();
t.cal();
}

void store(int i)
{
	int x=0;
	for(x=0;x<str.length;x++)
	{
		if(str[x]==i)
		{
			break;
		}
	}
	if(x==str.length){str[z++]=i;}
	for(x=0;x<str.length;x++)
	{
		if(str[x]==i+1)break;
	}
	if(x==str.length)
		str[z++]=i+1;
	
}

}

sorted out.