Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Help me implement the just the toArray method here in the code . Thanks ArraySL.java-you will edit this file LinkedSL.java - you will edit this

image text in transcribed
image text in transcribedHelp me implement the just the toArray method here in the code . Thanks
ArraySL.java-you will edit this file LinkedSL.java - you will edit this file . TestLists.java -you will edit this file . Choosers.java-you will edit this file . Transformers.java- you will edit this file You are going to implement the stringList interface be twice, once for array lists and once for linked lists: public interface StringList f StringII toArray): void transformALU(StringTransformer st) void chooseAll(StringChooser sc); boolean isEmpty); You will also implement a constructor for linked lists that tak a string array (Stringl)) as a parameter; we've provided the constructor of this form for array lists. in total, you will implement and thoroughly test: 115 23 public Node(String value, Node next) this valuevalue this next-next; public class LinkedSL implements Stringlist 4 Node front: 6 8 5 int size 7. public LinkedSL(Stringtl contents) /1 Fill in this constructor this.front = null; this.front = new Node(null ,nuu); 23 24 I/ Fill in alt methods 5 eoverride public StringlI toArray() ( front pe Node(this.frantanu.)i 31 @Override 32 public void transfornALi(StringTransformer s) t /IStringil contents this. contents; //LinkedSL new LinkedSL(contents); //ls.transformatt(new UpperCaseTransformer) 34 35 36 37 38) 390 eOverride 40 41 public void chooset11(StringChooser sc) 42 ) 430 eoverride public boo Lean IsEapty) f 45 return true 47 48 49 50 acBook

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions