00:01
So we are going to be analyzing some java code to see what will be the outcome of it.
00:08
So you see right here we have some code right here.
00:13
So in order to understand what exactly is going on, we first want to take it line by line.
00:21
So we see here that we have an integer being created and the name of the integer is called i and its value is being set to 20.
00:33
So we have an if statement.
00:36
So we created a condition.
00:41
So if i is greater than 20, we want to print out a message, print out a message on a line, and say the value i is what would be i up here, which would be 20.
01:03
And then we want to increment it by one.
01:07
So down here where there's another if statement.
01:15
And our condition is if i is a module 2 and it does not equal 0.
01:25
An equal, sorry, an exclamation point and equal sign r does not equal in java.
01:35
So we mainly use this when we're trying to find an odd number.
01:48
So if the module of 20 is not zero, we want it to break.
02:01
So i'm guessing means that it wants to end the program.
02:08
So let's run this.
02:14
So we get an error...