I got the following exception in my program :
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at id.co.ptap.text.ParseText.main(ParseText.java:370)
This is the relevant code:
x = first+";"+allHeader.get(count) + strBody + "\n"; //line 370
bw.write(x);
System.out.println(x);
if (ketemu) {
count++;
ketemu = false;
}