Java Get Index Of Item In Array Literal Error