Question: ***Java (JDK11) *** Follow Instructions to the Letter! /*Create a class SimpleArrays, which has these characteristics: . * The class has an instance variable (a
***Java (JDK11) ***

Follow Instructions to the Letter!
/*Create a class "SimpleArrays", which has these characteristics: . * The class has an instance variable (a 4-element array of Strings) Has a constructor which can be called with one argument: a String Uses the java.util.Arrays method fill to populate all elements of the instance variable array with the String Overloads the constructor with a zero argument version The array is populated with the default String "Hello, world" Provides a method arrayConcat Accepts an array index; if no array index is supplied, o is used by default This method should have default behavior if the index supplied exceeds the bounds of the array (IndexOutofBoundsException error) Returns a String consisting of all the elements of the array, from the provided index to the end, concatenated, separated by the # character (no whitespace should be introduced) Provides a method arrayCrop Accepts two integers as arguments, corresponding to starting and ending array indices. The starting and ending indices are inclusive. Returns a String consisting of all the elements between the two indices specified, concatenated, separated by the # character (no whitespace should be introduced) If the ending integer is smaller than the starting integer, switch the two (use the start as the end, and the end as the start) If either integer is not a valid index, return "Fail" If the two integers are the same, return "Match" */
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
