Question: 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 java program The young American poet laureate, Amanda Gorman would like to

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 court

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!