Write a program named Lab18D with: A recursive method that accepts an array of strings. It should return a count of strings in the array that start with an 's' and print them as well (on one line with a space between them). A second recursive void method that receives an array of strings and prints the array (on one line with spaces between the values.) Don't use the Arrays.toString method to shortcut this; each recursive call of the method should only print one string. The main method should read an unknown number of strings from the input file (Lab18D.txt) into an array. (Each string is a single word.) Call the method to print the array and then the method to look for strings starting with an 's'. Print a label before calling this method.
Write a program named Lab18D with: A recursive method that accepts an array of strings. It should return a count of strings in the array that start with an 's' and print them as well (on one line with a space between them). A second recursive void method that receives an array of strings and prints the array (on one line with spaces between the values.) Don't use the Arrays.toString method to shortcut this; each recursive call of the method should only print one string. The main method should read an unknown number of strings from the input file (Lab18D.txt) into an array. (Each string is a single word.) Call the method to print the array and then the method to look for strings starting with an 's'. Print a label before calling this method.
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images