class movie { ArrayList lines; String name; int len; movie() { } void readin(String file) { name = file; println("load movie "+file); lines = new ArrayList(); String txtlines[] = loadStrings(file); time start, end; for(int i=0; i 0 && zeile < 18) { txt += txtlines[i+zeile] + " "; zeile++; } subtitle n = new subtitle(no,txt,start,end); lines.add(n); i+= zeile+1; } println(lines.size() + " lines"); // position subtitles according to length of movie subtitle s = (subtitle) lines.get(lines.size()-1); len = s.end.seconds; for(int i=0; i