问题如下:给定一个整数数组nums和一个整数val,就地删除nums中所有出现的val。元素的顺序可以改变。然后返回nums中不等于val的元素个数。考虑nums中不等于val的元素数量为k,要被接受,你需要做以下事情:更改数组nums,使nums的前k个元素包含不等于val的元素。nums的其余元素以及nums的大小并不重要。返回k.自定义法官:法官将使用以下代码测试你的解决方案:int[]nums=[...];//输入数组intval=...;//要删除的值int[]预期数量=[...];//具有正确