lint all files

This commit is contained in:
2024-01-16 13:48:46 +00:00
parent b515ba4458
commit a321b0ce99
45 changed files with 66985 additions and 23206 deletions

View File

@@ -21,6 +21,7 @@ Loop Control:
- Update
for the amount of times in the length of the animalCount array, add the animalCount\[i] to the sum.
#### Example 2:
```java
@@ -47,4 +48,3 @@ i = 2, j = 1, 2, 3, 4 | 2, 4, 6, 8
i = 3, j = 1, 2, 3, 4 | 3, 6, 9, 12
- \\t represents a TAB character.

View File

@@ -13,5 +13,3 @@
- Value is lost when call completed
- Lifetime of an objects field variable is the lifetime of the object itself
- Accessor method allows access to the value of a field without changing the state of an object

View File

@@ -59,22 +59,28 @@ boolean iPositive = i>0; //TRUE
### Object and Memory Diagrams
- null = nothing
```java
Account account;
```
- This causes a memory location to be reserved for account.
```java
account = new Account(100);
```
- This causes account to be instantiated with a balance of 100
```java
Account account;
account = new Account(250);
account = new Account(700);
```
- After declaration and execution of the first assignment, the state of the memory diagram is:
- Account => Account (Balance = 250) => Account ~~(Balance 250)~~ (Balance 700).
- This is an example of Garbage Collection.
- Read up to w5 slide 39.
Next homework next Wednesday. Based mainly on Homework 1.
Next homework next Wednesday. Based mainly on Homework 1.

View File

@@ -1,9 +1,11 @@
## Lecture 2 (14:00)
### Sequential Execution
- Code usually executed in logical order.
- One exception is calling methods from other methods
ex.
```java
public void moveHorizontal( int distance )
{
@@ -12,4 +14,3 @@ public void moveHorizontal( int distance )
draw();
}
```

View File

@@ -6,9 +6,11 @@ Do not need to specify a size when we create a collection.
Add as many items without concern for space.
### ArrayList
- Imported from java.util
-
### ArrayList Methods
- get()
- remove()