@Test public void test(){ int result = Sequential.Search(CommonData.SEQUENCE_ARRAY,3); System.out.println(result); }
public static int Search (int[] array,int value){ for (int i = 0; i < array.length; i++) { if (array[i]==value) return i; } return -1; }
Sequential { public static int Search (int[] array,int value){ for (int i = 0; i < array.length; i++) { if (array[i]==value) return i; } return -1; } }
Sequential { public static int Search (int[] array,int value){ for (int i = 0; i < array.length; i++) { if (array[i]==value) return i; } return -1; }  }
Sequential { public static int Search (int[] array,int value){ for (int i = 0; i < array.length; i++) { if (array[i]==value) return i; } return -1; }  static int Search(int[] array,int value); }
Sequential { public static int Search (int[] array,int value){ for (int i = 0; i < array.length; i++) { if (array[i]==value) return i; } return -1; }  static int Search(int[] array,int value);  }