I have the next problem to compile using NetBeans and console in Ubuntu 14.04:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
My code is (in the line of error):
Object maxFreK = map.keySet().toArray()[0];
How can I solve it?
Thanks!