00:01
So we will start by writing import java .util .scanner.
00:16
So scanner is a class that is used to take user input and it is present in java .util package.
00:22
So we need to import this so that we can use these class in our program.
00:28
Next we will write the class name class.
00:31
We are calling this increment inside this.
00:39
We will write the main function.
00:40
So the first of all we will write public static void main.
00:52
So public access file means anyone can access this file.
00:55
Static means it's a class related method.
00:58
Void means the return it will not return anything.
01:01
Main is the name of the function and then this string args.
01:10
So this is a command line argument which is taking an array of strings.
01:17
Now inside this main function we will first we will start by creating an object of scanner class.
01:23
So in order to use any method in our related to scanner class we have to create the object first.
01:30
So we are writing new scanner system dot in.
01:42
Now we will take the inputs the first let's say we are calling the first variable integer variable n1 and we will write obj .next int.
01:56
Now next int is a method that is used to take or read integer inputs.
02:01
Similarly we have the next one that is n2.
02:05
So it will take obj .next int.
02:14
Then we will give the if condition that if n1 is less than or equals to n2 in that case it will come inside this if condition and we will write this loop that i from n1 it will start from n1.
02:36
It should be less than equals to n2 and as given in the question we have to increment this by 10 and then we will print system dot out dot print.
02:56
Thus you have to give the space.
02:58
So we are not using print ln over here because we have to give all the numbers the output should be in the same line...