public byte[] L1(){
int minsupport=1000;
ArrayList<Byte> temp=new ArrayList<Byte>();
for(Byte b: map.keySet())
if(map.get(b)>minsupport)  temp.add(b);
     
return  temp.toArray(new byte[temp.size()]);
}
  错误提示:The method toArray(T[]) in the type ArrayList<Byte> is not applicable for the arguments (byte[])
找不到原因,高手指点一下