Python Array Get Function In Java