Get Array Index Python String To Int Conversion In Java