Question: This age may be wsed for extra coding space for the previous problems. Make sure you indicate whict is associated with if you use this
This age may be wsed for extra coding space for the previous problems. Make sure you indicate whict is associated with if you use this page. Part I - Coding (50 points) 1. (1s points) Complete the skeleton below for the method named moreDigitsThanLetters takes that a string as input and returns back a boolean value. The method returns true if the stri ng parameter a t r contains more digit characters ('O-9" ) than letter characters(' a.-' ?' or 'Aand false otherwise. For example, if atr is "abe123" the method should return false Ifstr is "a331b" the method should return true. Ifstr is "12a?tn the method should retum true (punctuation does not count as a letter or a digit). If str is cmpty, the method should in docs sot count as a letter orade haracteais lel decriptions of return fa1se Note that you will want to use the methods Characteriapiais(e a Character.isLetter(c) that were used in the closed labs for this method -brief descriptions of and these methods can be found on the reference sheet at the back of the exam. Note also that you must NOT prompt the user for input in this method. private static boolean moreDigitsThanLetters (String str) your code goes here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
