Java Find Last Index Of Array Python Initialize