Unit |
Score |
1 |
0.9/1 |
2 |
0.95/1 |
3 |
1/1 |
4 |
0.9/1 |
5 |
1/1 |
total |
4.75/5 |
Unit 1
Unit 1 Blog
- casting can be used to round or truncate answers
- also find answer as double even if previous are integers
Unit 2
Unit 2 Blog
- wrapper classes allow int and double to be set and changed
- concatenation - add strings together
- use + or += or the method the concat()
- main method runs execution using created methods
- can be used as a tester to ensure code works
- public modifier allows method to be used by anyone
- private can only be seen by the class which declares it
- protected can be for class or subclass and package members
- no modifier cannot be used with other packages using the same subclass
- subclass extends class
Unit 3
Unit 3 Blog
- complex boolean expressions
- use && so that both expressions have to be true
- similar logic of truth tables, demorgans, logic gates
- different outputs given if inputs are similar or not
Unit 4
Unit 4 Blog
- while, for, recursion loop
- while: while a condition is met, code will keep
- for: for as long as a condition is true, continue printing
- recursion: repeat over and over until end
- nested - loop inside loop
Unit 5
Unit 5 Blog
- accessors access of get data
- mutator method does not allow access to variable but allows for modification
- void return type allows edit of even private variable