Write a method called markLength4 that accepts an ArrayList of strings as a parameter and that places
Question:
Write a method called markLength4 that accepts an ArrayList of strings as a parameter and that places a string of four asterisks " **** " in front of every string of length 4. For example, suppose that a variable called list contains the values ["this", "is", "lots", "of", "fun", "for", "Java", "coders"]. The call of markLength4(list); should change the list to store the values ["****", "this", "is", "****", "lots", "of", "fun", "for", "****", "Java", "coders"].
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Building Java Programs A Back To Basics Approach
ISBN: 9780135471944
5th Edition
Authors: Stuart Reges, Marty Stepp
Question Posted: