boolean isBadBoy(boolean hasGirlFriend , boolean isMarried,
int age , String middleName , String lastName , String[]
brotherName);
Answer / Radheshyam Pathak
public boolean isBadBoy(boolean hasGirlFriend, boolean isMarried, int age, String middleName, String lastName, String[] brotherName) {n if (age < 18 || (age >= 18 && !isMarried && hasGirlFriend)) {n return true;n }n if (brotherName != null && brotherName.length > 0) {n for (String brother : brotherName) {n if (brother.equalsIgnoreCase("BAD BOY")) {n return true;n }n }n }n return false;n}
| Is This Answer Correct ? | 0 Yes | 0 No |
Describe circular polarization?
what are the simlerities between macro and subroutine
Why you shifting job every other year?
how can i install windows-xp operating system in single time to 50 computersconnected in a LAN.
the interviewer ask me If i accept to in lower position than the one i was tested for
i need NIC written test paper or give me any idea about written exam.Plz send me at smileever8@gmail.com
Tell me about your parents?? Pls share any one best words...
tell about ur self
3 Answers American Megatrends, CTS,
is java supprot the complier time pollymorphism or run time pollymorphism ... why
How would you design a gravity dam for holding back water?
how to connect oracle with java ? Give detail explanation.
What is the difference between while & do while loop
Civil Engineering (5086)
Mechanical Engineering (4453)
Electrical Engineering (16638)
Electronics Communications (3918)
Chemical Engineering (1095)
Aeronautical Engineering (239)
Bio Engineering (96)
Metallurgy (361)
Industrial Engineering (259)
Instrumentation (3014)
Automobile Engineering (332)
Mechatronics Engineering (97)
Marine Engineering (124)
Power Plant Engineering (172)
Textile Engineering (575)
Production Engineering (25)
Satellite Systems Engineering (106)
Engineering AllOther (1379)