Liste de tableaux, l'Obtention de valeurs, à partir de l'index() index()

Salut tout le monde je suis en train d'obtenir les valeurs à partir d'une liste de tableaux que j'ai créé. J'ai quelques indices, et je veux imprimer les données entre les SEULS indices que je veux, jusqu'à présent, je ave fait cela, mais il ne semble pas fonctionner. Je pense que le get() n'est pas valide pour ce que je veux... des idées?

public static void main(String[] args) throws Exception {

    Scanner dataSc = new Scanner(new FileReader("StudData1.txt"));

    ArrayList<String> ArrayData = new ArrayList<String>();
    ArrayList<String> idData = new ArrayList<String>();
    ArrayList<String> idIndex = new ArrayList<String>();

    int b = 0;
    int a = 0;
    int i = 0;

    while (dataSc.hasNextLine()) {
        String data = dataSc.nextLine();
        ArrayData.add(i, data);

        if (data.contains("ID: ")) {
            idData.add(a, data);
            idData.set(a, (idData.get(a).replaceAll("[\\D]", "")));

            a++;
            b++;
        }

        i++;
        idIndex.add(b, Integer.toString(i));
    }

    int idSt1 = Integer.parseInt(idData.get(0));
    int idSt2 = Integer.parseInt(idData.get(1));
    int idSt3 = Integer.parseInt(idData.get(2));

    int idxID1 = Integer.parseInt(idIndex.get(0));
    int idxID2 = Integer.parseInt(idIndex.get(1));
    int idxId3 = Integer.parseInt(idIndex.get(2));

    if (idSt1 < idSt2 && idSt2 < idSt3) {

         System.out.println(ArrayData.get(idxID1-3 , idxID2-3 );}
    }

}

}

OriginalL'auteur Heneko | 2014-02-13