for (int i = 0; i < rows.length; i++) { Person currentPerson = (Person) filteredPersons .elementAt(rows[i]);
for (int i = 0; i < unfilteredPersons.size(); i++) { Person currentPerson = (Person) unfilteredPersons .elementAt(i);
	public void saveToCSVFile(String filename, int[] rows,			char separator) {		Debug.msg("Saving phone book to csv file " + filename); //$NON-NLS-1$		FileOutputStream fos;		try {			fos = new FileOutputStream(filename);			PrintWriter pw = new PrintWriter(fos);			// pw.println("\"Private\";\"Last Name\";\"First			// Name\";\"Number\";\"Address\";\"City\"");			pw.println(getCSVHeader(separator));							for (int i = 0; i < rows.length; i++) {					Person currentPerson = (Person) filteredPersons							.elementAt(rows[i]);					pw.println(currentPerson.toCSV(separator));				}			pw.close();		} catch (FileNotFoundException e) {			Debug.err("Could not write " + filename + "!"); //$NON-NLS-1$,  //$NON-NLS-2$		}	}