00:01
Hello students, here is the java program that checks whether the person is eligible for the marriage based on the given condition.
00:09
So, as this is to check the ability of the marriage based on the gender and the age.
00:15
So, it prompts the user to enter like enter their input their age and the gender and then determines if they are eligible for the marriage according to the specific criteria.
00:28
As here you can see we are using a inpututil .java scanner class to enable the user inputs then we are using a define class named as a marriage ability checker.
00:42
So, where inside this main method we create the scanner object named as the scanner to read the input then then as it prompts the users to enter their gender with the male or the female.
00:56
So, reads the character entered by the user using the scanner dot next.
01:02
So, char at zero.
01:03
So, and store it in a variable gender with then next it prompt the users to enter their age.
01:11
So, reads the integer entered by the user using the scanner next int method and it stores it in a variable of an age...