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.

      非常有用

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

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

    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);

  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