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
give an example of type casting by a simple c program
Explain how do you determine the length of a string value that was stored in a variable?
If we give two names then this displays the connection between the two people. It is nothing but flames game
how write a addtion of two single dimensional array using of pointer in c language?
How can you pass an array to a function by value?
What is a string?
Explain how do you declare an array that will hold more than 64kb of data?
Explain data types & how many data types supported by c?
Whats s or c mean?
what is the use of call back function in c?tell me with example
How will you allocate memory to a double pointer ?
How to write a code for reverse of string without using string functions?