Mercurial > hg > mep
changeset 20:f0cd8f32e8c8
Make print out of probe positions indexed from 1 to match filelist.
author | Marcus Pearce <marcus.pearce@eecs.qmul.ac.uk> |
---|---|
date | Thu, 01 Mar 2012 09:39:26 +0000 |
parents | 0c5205934936 |
children | 9e45ae01f81e |
files | FileList.class FileList.java Icons/FastForward16.gif Icons/FastForward24.gif Icons/Movie16.gif Icons/Movie24.gif Icons/Pause16.gif Icons/Pause24.gif Icons/Play16.gif Icons/Play24.gif Icons/Rewind16.gif Icons/Rewind24.gif Icons/StepBack16.gif Icons/StepBack24.gif Icons/StepForward16.gif Icons/StepForward24.gif Icons/Stop16.gif Icons/Stop24.gif Icons/Volume16.gif Icons/Volume24.gif |
diffstat | 20 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/FileList.java Wed Jan 25 13:30:28 2012 +0000 +++ b/FileList.java Thu Mar 01 09:39:26 2012 +0000 @@ -2,7 +2,7 @@ * File: FileList.java * Author: Marcus Pearce <m.pearce@gold.ac.uk> * Created: <2007-11-30 10:30:38 marcusp> - * Time-stamp: <2011-11-04 18:05:36 marcusp> + * Time-stamp: <2012-03-01 09:35:00 marcusp> *============================================================================= */ @@ -100,9 +100,11 @@ while (fi.hasNext()) { System.out.print((String)fi.next() + ": "); ArrayList ip = (ArrayList)pi.next(); - Iterator ipi = ip.iterator(); - while (ipi.hasNext()) - System.out.print(ipi.next() + " "); + + for (int i = 0; i < ip.size(); i++) { + int ppos = ((Integer)ip.get(i)).intValue() + 1; + System.out.print(ppos + " "); + } System.out.print("\n"); } }