Answered step by step
Verified Expert Solution
Question
1 Approved Answer
java program The young American poet laureate, Amanda Gorman would like to create a method to return the maximum number of consecutive blanks in a
java program
The young American poet laureate, Amanda Gorman would like to create a method to return the maximum number of consecutive blanks in a String called poem. For example, if the String poem="if only we're brave enough to see it. If only we're brave enough to be it." The method would return 2. If there are no blanks in the string, it should return o. Please write the method for Amanda to return the maximum number of consecutive blanks in a String called poem. Here is the method header public static int longestBlank (String poem) Maximum number of characters (including HTML tags added by text editor): 32,000 Show Rich Text Editor (and character courtStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started