/** * ITI 1521. Introduction ŕ l'informatique II * ITI 1121. Introduction to Computer Science II * * @author Marcel Turcotte, Université d'Ottawa/University of Ottawa */ public class Balanced { public static boolean algo1( String s ) { int curly = 0; int square = 0; int round = 0; for ( int i=0; i brackets; brackets = new ArrayStack( 100 ); for ( int i=0; i " + algo1( args[ i ] ) ); System.out.println( "algo2( \"" + args[ i ] + "\" ) -> " + algo2( args[ i ] ) ); } } }