/** @(#)TestSeguidosJeliot.java 2009 adolfo@di-mare.com Programa de prueba para {@code Encajados}. @author Adolfo Di Mare */ /** Datos de prueba para la rutina {@code seguidos()}. */ public class TestSeguidosJeliot { /** Calcula cuantos valores consecutivos tiene {@code V[]}. */ public static int seguidos( int V[] ) { int cantidad = 0; { /******************************\ * * * RELLENE CON SU ALGORITMO * * * \******************************/ } return cantidad; } /** Programa principal. */ public static void main( String args[] ) { int n; { int V[]={1,1,1,2,2,3 }; n = 3; n = seguidos(V); } { int V[]={10,9,10,11,12}; n = 0; n = seguidos(V); } { int V[]={11,10,9,10,11}; n = 0; n = seguidos(V); } { int V[]={1,2,2,3,3,3}; n = 3; n = seguidos(V); } { int V[]={6,6,6,6,6,6}; n = 5; n = seguidos(V); } } } // EOF: TestSeguidosJeliot.java