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
Write a c program using for loop in switch case?
Explain how do you convert strings to numbers in c?
what is the use of call back function in c?tell me with example
Why Modern OS are interrupt driven?Give an example
what is disadvantage of pointer in C
Is array name a pointer?
The statement, int(*x[]) () what does in indicate?
main() { printf(5+"Vidyarthi Computers"); }
how to create duplicate link list using C???
What is a const pointer in c?
What is structure padding in c?
implement OR gate without using any bitwise operator.