- int f=mmap[0][2],t=mmap[0][3];
- while (f<t) {
- System.out.println("Range "+f+" to "+t);
- int rng[] = ml.locateInFrom(f,t);
- if (rng!=null)
- {
- for (int i=0; i<rng.length; i++) {
- System.out.print(rng[i]+((i%2==0) ? "," : ";"));
- }
- }
- else
- {
- System.out.println("No range!");
- }
- System.out.print("\nReversed\n");
- rng = ml.locateInFrom(t,f);
- if (rng!=null)
- {
- for (int i=0; i<rng.length; i++) {
- System.out.print(rng[i]+((i%2==0) ? "," : ";"));
- }
- }
- else
- {
- System.out.println("No range!");
- }
- System.out.print("\n");
- f++;t--;
- }
- }
- System.out.print("\n");
- mmap = ml.makeToMap();
- System.out.println("ToMap : (" + mmap[0][0] + " " + mmap[0][1] + " " +
- mmap[0][2] + " " + mmap[0][3] + " ");
- for (int i = 1; i <= mmap[1].length; i++)
- {
- if (mmap[1][i - 1] == -1)
- {
- System.out.print(i+"=XXX");