Question: StringIndices.java 1 package stringfindindexes; import java.util.ArrayList; import java.util.List; String Indices 6 public class StringIndices i Implement the function public static List positions InString(String text, char

StringIndices.java 1 package stringfindindexes; import java.util.ArrayList; import java.util.List; String Indices 6 public class StringIndices i Implement the function public static List positions InString(String text, char searchingFor) 19 11 12 13 14 /** Searches for all occurances of the given character in a string. * Returns a list of integers corresponding to the index positions where * the character appears in the string. The search is case sensitive (i.e. 'a' and 'A' are different). * @param text Text to be searched. * @param searching For A character to search for in the text. * @return List of numbers corresponding to index positions in the text. * */ public static List
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
