28 Matching Annotations
- Feb 2021
-
csawesome.runestone.academy csawesome.runestone.academy
-
the same code can have different results depending on the object’s actual type at run-time.
not shown
-
-
csawesome.runestone.academy csawesome.runestone.academy
-
Programming Challenge : Shopping Cart
extraneous
-
-
csawesome.runestone.academy csawesome.runestone.academy
-
Overloading Methods
跟 “继承” 没关系, unit5 有提到
-
@Override annotation
不考
-
-
csawesome.runestone.academy csawesome.runestone.academy
-
design an online store with classes
class design is not tested
-
9.1.4. is-a vs. has-a (Day 2)
不重要
-
-
csawesome.runestone.academy csawesome.runestone.academy
-
public class Car extends Vehicle
FRQ 要考
-
UML (Unified Modeling Language) class diagram
不用记
-
-
csawesome.runestone.academy csawesome.runestone.academy
-
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.
非常有用
-
getTotalForCol
col 不变,as a constant
-
8.2.4. Enhanced For-Each Loop for 2D Arrays (Day 2)
不用学
-
-
csawesome.runestone.academy csawesome.runestone.academy
-
column-major order”
go down the column
-
for (int row = 0; row < array.length; row++) { for (int col = 0; col < array[0].length; col++) {
记住,考试的时候写出来就可以得分
-
-
csawesome.runestone.academy csawesome.runestone.academy
-
Programming Challenge : ASCII Art
skip it
-
-
csawesome.runestone.academy csawesome.runestone.academy
-
The length property
shorter instruction-------- rows; longer instruction --------------x=columns;
-
8.1.3. How Java Stores 2D Arrays
no need to read
-
-
csawesome.runestone.academy csawesome.runestone.academy
-
8.1.3. How Java Stores 2D Arrays
no need to read
-
-
csawesome.runestone.academy csawesome.runestone.academy
-
describes how selection sort works.
-
-
csawesome.runestone.academy csawesome.runestone.academy
-
n this Binary Search Animation to see
-
-
csawesome.runestone.academy csawesome.runestone.academy
-
write a method called numMatches()
if you see "illegal start of expression", it's probably because of missing braces in main method.
-
want a nicer printout
list.size() Access value = array[index]; value = list.get(index); Modify array[index] = value; list.set(index,value);
-
k++;
won't remove 2nd in 2 consecutive
-
removes a name from a list.
最好用while,不用for
-
- Oct 2020
-
csawesome.runestone.academy csawesome.runestone.academy
-
awt
Abstract Window Toolkit=AWT
-
-
csawesome.runestone.academy csawesome.runestone.academy
-
static methods
without creating an object
-
java.lang package
java语言的核心
-
- Sep 2020
-
runestone.academy runestone.academy
-
rounds up
=ROUND(3.238,2) 結果為 3.24,正常的四捨五入
=ROUNDUP(3.238,2) 結果為 3.24,不管下一位數是多少,都要進1
=ROUNDDOWN(3.238,2) 結果為 3.23
-
-
runestone.academy runestone.academy
-
divide an integer by zero
denominator
-