private void printStrings() throws IOException {
    int index = 0;
    for (String string : dex.strings()) {
      System.out.println("string " + index + ": " + string);
      index++;
    }
  }
Executable that prints all indices of a dex file.
android/android_framework/dex-maker/src/main/java/com/android/dx/io/DexIndexPrinter.java