I mean something like this:
/**To edit record in the file*/
public void editRecord(String busnum){
for(int i=0; i><buses.size(); i++){
Bus b = (Bus)buses.get(i);
if((b.getBusnum()).compareTo(busnum)==0){
b.setName("New Bus");
}
}
So in this example, i access the name property of a bus and change its name by calling its setName(String name) method. The method you need to call all depends on what you mean by editing!