28 Matching Annotations
  1. Feb 2021
    1. You can loop through just part of a 2D array. You can change the starting value and ending value to loop through a subset of a 2D array.

      非常有用

    2. getTotalForCol

      col 不变,as a constant

    3. 8.2.4. Enhanced For-Each Loop for 2D Arrays (Day 2)

      不用学

    1. column-major order”

      go down the column

    2. for (int row = 0; row < array.length; row++) { for (int col = 0; col < array[0].length; col++) {

      记住,考试的时候写出来就可以得分

    1. The length property

      shorter instruction-------- rows; longer instruction --------------x=columns;

    2. 8.1.3. How Java Stores 2D Arrays

      no need to read

    1. write a method called numMatches()

      if you see "illegal start of expression", it's probably because of missing braces in main method.

    2. want a nicer printout

      list.size() Access value = array[index]; value = list.get(index); Modify array[index] = value; list.set(index,value);

    3. k++;

      won't remove 2nd in 2 consecutive

    4. removes a name from a list.

      最好用while,不用for

  2. Oct 2020
  3. Sep 2020
    1. rounds up

      =ROUND(3.238,2) 結果為 3.24,正常的四捨五入

      =ROUNDUP(3.238,2) 結果為 3.24,不管下一位數是多少,都要進1

      =ROUNDDOWN(3.238,2) 結果為 3.23