[Solved] Java making a method that does the same thing as str.indexOf() from the java.lang.string class
It should look something like this: //method declarations need to declare the return type, name, and arguments int indexOf(String s, char ch) { //loop over each index in the string for (int i = 0; i < s.length(); i++) { //if the char at this index is the one we are looking for if (ch … Read more