why this error is occuring?
this is my array declaration : int[] mainTree = {1,2,4,-1,-1,5,-1,-1,3,-1,-1};
This array is being used to make a binary tree, and here -1 indicates a null value, but I cannot figure out why this error is being displayed.