Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

package prog01; public class Lamb { String array = { "Mary" , "had" , "a" , "little" , "lamb" , null , null , null , null , null }; int size = 5; /**...

package prog01;

publicclass

"Mary""had""a""little""lamb"

           null, null, null, null, null };

 int = 5;

/** Insert a word into the array at the specified index.

   pre: size < array.length

   @param word The word to insert.

   @param index The index at which to insert it.

   post: Word is inserted, pushing words from index+1 to size1 forward.

   size incremented by 1. */

 void insert (String , int ) {

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question