```
public class Solution {
public boolean canJump(int[] nums) {
if ( nums == null ) return false;
int reach = 0;
for ( int i = 0 ; i < nums.length; i++ ) {
if ( reach < i ) return false;
reach = Math.max(reach, nums[i] + i);
}
return true;
}
```