Implementato interamente un tda sequenze usando array (ArrayIndexList). Aggiunto reverse di sequenze in global.

This commit is contained in:
2014-03-30 21:44:37 +02:00
parent 5cc6be1a96
commit 483863d410
6 changed files with 179 additions and 33 deletions

22
com/xgiovio/global.java Normal file
View File

@@ -0,0 +1,22 @@
package com.xgiovio;
import sequence.Sequence;
/**
* Created with MONSTER.
* User: xgiovio
* Date: 30/03/2014
* Time: 21:35
*/
class global {
public static <E > void reverse (Sequence<E> in){
if (in.size()> 1){
E t = in.removeFirst();
global.reverse(in);
in.addLast(t);
}
}
}