No matter whatever other code i write on my mac apart from the very popular Hello World, no other one seems to work on my mac.
The error i get is: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at Distance1.main(distance1.java:4)
Since i'm just a beginner, i dont know what it means. Can any1 help me with it?