最初にindexOfの使い方をになります。 一般的な構文は次のとおりです。 var items = 配列データ; items.indexOf("検索対象の要素","検索開始位置"); 配列データの中を検索する際に、検索対象となる要素の値を「indexOf」に指定すれば、その検索結果を返り値として取得 ...
Write a recursive method indexOf that accepts two Strings as parameters and that returns the starting index of the first occurrence of the second String inside the first String (or -1 if not found).