Write a static boolean method named beginsWithZ. It should accept a String object as a parameter. It should return true if the first character in the String is either of two characters: a capital 'Z', or a lowercase 'z'. (Note: Check the parameter for a null value, and for an empty string. Nulls and empty strings do not start with an 'z'.)
+4
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write a static boolean method named beginsWithZ. It should accept a String object as a parameter. It should return true if the first ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » Write a static boolean method named beginsWithZ. It should accept a String object as a parameter. It should return true if the first character in the String is either of two characters: a capital 'Z', or a lowercase 'z'.