You don't need two loops. Just use one while loop with two variables: Java. int first = 0; int last = length - 1; while (first <= last) { if ...
確定! 回上一頁