You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an out-of-bounds exception is thrown, then the two text cases from hitting run pass.
int current = 1; for(int i = 1; i <= nums.length; i++){ if(!(nums[i] == nums[current])){ nums[current] = nums[i]; current++; } } return current; }
Plug that code into the problem and hit run to see it.