Badboy is defined who has ALL the following properties:
Does not have a girlfriend and is not married.
He is not more than 23 years old.
The middle name should be "Singh"
The last name should have more than 4 characters.
The character 'a' should appear in the last name at least
two times.
The name of one of his brothers should be "Ram"
Write a method:
boolean isBadBoy(boolean hasGirlFriend , boolean isMarried,
int age , String middleName , String lastName , String[]
brotherName);
isHaveGirlFriend is true if the person has a
girlfriend
isMarried is true if the person is married
age is the age of the person
middleName is the middle name of the person
lastName is the last name of the person
brotherName is the array of the names of his
brothers
No Answer is Posted For this Question
Be the First to Post Answer
How can you avoid including a header more than once?
Describe the order of precedence with regards to operators in C.
which is an algorithm for sorting in a growing Lexicographic order
Write a program to show the change in position of a cursor using c
What is the benefit of using const for declaring constants?
Differentiate abs() function from fabs() function.
How do you redirect a standard stream?
What is property type c?
Write a progarm to find the length of string using switch case?
What is the difference between malloc() and calloc()?
Is c still used?
write a program for 4 4 3 3 3 3 2 2 2 2 2 2 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 2 2 2 2 2 2 3 3 3 3 4 4