package iYou.neugle.search; public class Sequence_search {
public static int SequenceSearch(double[] array, double key) {
for (int i = 0; i < array.length; i++) {
if (key == array[i]) {
return i;
}
}
return -1;
}
}
2022-07-14 19:16:09
package iYou.neugle.search; public class Sequence_search {
public static int SequenceSearch(double[] array, double key) {
for (int i = 0; i < array.length; i++) {
if (key == array[i]) {
return i;
}
}
return -1;
}
}