How To Get Last Index Value Of Array In Java