scriptella で次のコードを記述するにはどうすればよいですか? Set と String を比較しようとしているようで、最後の for ループが気に入らないようです。&&のような論理式の書き方とは?ありがとうございました。
<connection id="java" driver="scriptella.driver.janino.Driver"/>
<script connection-id="java>
//some code
if(finalOrderCounter < numberOfEntries){
Set <String> set = new HashSet <String>();
for(int i = 0; i < fieldNames.length; i++){
set.add(fieldNames[i]);
}
for(int i = 0; i < fieldNamesFromXML.length; i++){
set.remove(fieldNamesFromXML[i]);
}
String exception = "";
for(String element:set)
exception += element +"\n";
throw new IOException("Field(s)\n" + exception + "do(es) not exits in the source database");
}