0

1 と 2 の 2 つの文字列を含む String Split() があります。リンクリストに追加します。ここで、one の最初の要素を取得する必要があります。

String split() {
one = ""; 
two = "";       
int index = tableFields.indexOf("(");
        if (index > -1){
        one = tableFields.substring(0, index);
        two = tableFields.substring(index + 1,
                tableFields.length() - 1);

        return "`" + one + "`" + " "+  two;
        }
        else {
            return "";
        }

}


void readTextFile() {

    String line;

    while (FileReaderScanner.hasNextLine()) {
    fieldlist.add(split());  }   

}

4

1 に答える 1