Question: How can I write this code in Java? fillArray public static java.lang.string[] fillArray (java.util.Scanner fin, int total) The fillArray method reads the string from the

How can I write this code in Java?
fillArray public static java.lang.string[] fillArray (java.util.Scanner fin, int total) The fillArray method reads the string from the file and puts it into the array. You must first create an array of Strings before you can add items into the array. Parameters: fin Representing the Scanner to an open file total - Representing the number of elements for the array Returns: String [ - Representing the filled array Throws java.lang.IllegalArgumentException - if the Scanner object is null java.lang.IllegalArgumentException - if total is
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
