> For the complete documentation index, see [llms.txt](https://ucan.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ucan.gitbook.io/notes/55.-jump-game.md).

# 55. Jump Game

```java
class Solution {
    public boolean canJump(int[] nums) {
        int jumpMax =0;
        for(int i = 0; i<nums.length; i++){
            if (i>jumpMax) return false;
            jumpMax = i+nums[i]>jumpMax? i+nums[i]: jumpMax;
        }
        return true;
    }
}
```
