1.这个题不难,关键在于把题目意思理解好了.这个题问的不清楚.要求return new length,很容易晕掉.其实就是return 有多少个单独的数. import java.util.Arrays; /* * Question: Given a sorted array,remove the duplicates in place such that each element * appear only once and return the new length * * Do not a…