00:02
Hello student, here java program i have written for the check is this rectangle or is this k.
00:09
So here i import java .util .scanner because i have to read the data from the user.
00:18
That's why scanner class is used to get user input.
00:23
So here i have made the class square or rectangle, public class square or rectangle.
00:29
I have to check then public state required main now create a scanner object to read input scanner.
00:36
So here i take input new scanner here, new scanner, then system .output .printl enter the length of the rectangle, enter the print.
00:48
So here with the help of input .nextlnt, next integer.
00:55
So next int, sorry, next int.
00:59
So it is taken and length and breadth both are integer type data.
01:05
So these two variables are taken from the user.
01:08
Now i am checking by their lengths and breadth...