Question: Finish writing the basicGapWidth method below so that it returns the size that the gap should be. The main method below will test your code
Finish writing the basicGapWidth method below so that it returns the size that the gap should be. The main method below will test your code to check that you solved it correctly.
import java.util.*; public class StringFormatter { /** Returns the basic gap width when wordList is used to produce * a formatted string of formattedLen characters. * Precondition: wordList contains at least two words, consisting of letters only. * formattedLen is large enough for all the words and gaps. */ public static int basicGapWidth(List
public static int totalLetters(List
public static void main(String[] args) { List
List
List
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
