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

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 positionsInString(String text, char searchingFor) { in the manner described by the comments. } 20

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!