Hello, I wanted to know why did you define the “indices[ ]” array as null initially. And I think due to this I am getting error for Null Pointer exception as given below,
Exception in thread “main” java.lang.NullPointerException: Cannot store to int array because “indices” is null