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
sum of two integers values only other then integer it should print invalid input.
Why flag is used in c?
What is %g in c?
Linked lists -- can you tell me how to check whether a linked list is circular?
What are identifiers c?
What are the string functions? List some string functions available in c.
What does d mean?
Do character constants represent numerical values?
main() { int i; printf("%d",((i=1)*i-- - --i*(i=-3)*i++ + ++i)); } ans is 24 bt how?pls tell smbody............
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
write a method for an array in which it can display the largest n next largest value.
What is actual argument?