binary
place values

1 0 1 1 . 0 1
2^3 2^2 2^1 2^0. 2^-1 2^-2
$2^3$ $2^2$ $2^1$ $2^0$
8 + 0 + 2 + 1 + 1/4
11001 → 25
16 + 8 + 1 = 25
floating point notation

loops...while loops + for loops
while loop
int x = 10;
while (x > 0) {
System.out.println(x);
x = x - 1;
}
for loop
for (int x = 10; x > 0; x--) {
System.out.println(x);
}
loops 2. so which one do i use?
- whichever one makes more sense to you
- longer answer: since the while loop syntax is more flexible, it is often used in cases where the programmer does not know the amout of times the loop will need to execute
- they can be used interchangeabley tho tbh
static classes (integer, etc)