Replace a.get(n) with a[n].