public static int[] indexsOfFoundStrings( String[] lookup, String[] array ) {
    List<Integer> indexesList = new ArrayList<>();
    for ( int i = 0; i < lookup.length; i++ ) {
      int idx = indexOfString( lookup[i], array );
      if ( idx >= 0 ) {
        indexesList.add( Integer.valueOf( idx ) );
      }
    }
    int[] indexes = new int[indexesList.size()];
    for ( int i = 0; i < indexesList.size(); i++ ) {
      indexes[i] = ( indexesList.get( i ) ).intValue();
    }
    return indexes;
  }
@Test
  public void testIndexsOfFoundStrings() {
    Assert.assertArrayEquals( new int[] { 2, 1 }, Const.indexsOfFoundStrings( new String[] { "qux", "foo", "bar" },
        new String[] { "baz", "bar", "foo" } ) );
  }