Hello buddy, I believe that your problem lies in the fact that you havent declared a size for the array.



public static void main(String[] args) {
String[] myArr = new String[20];...