Package damas

Source Code of damas.TestMatrixDiez

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package damas;

import damas.entidades.Tablero;
import damas.entidades.TableroException;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
*
* @author Usuario
*/
public class TestMatrixDiez {

    public static void main(String[] args) {
        System.out.println("[ .. ]Testablero");
        ArrayList<ArrayList<Integer>> matrix = new ArrayList();
        ArrayList<Integer> ejey2 = new ArrayList();

        matrix.add(ejey2);


        // try { // Intentar Operacion OK

        System.out.println("matriz size " + matrix.size());
        System.out.println("matriz en 0 " + matrix.get(0));
        //System.out.println("matriz en 22 " + matrix.get(22));
        //        } catch (Exception err) { // Grantizar Caso de Error
        //            System.out.println("[Error]Testablero");
        //            err.printStackTrace();
        //           
        //        } finally { // Garantizar Ambos casos Liberar Recursos Compartidos
        //            System.out.println("[ .. ]Testablero Libero Recursos");
        //        }
        try {
            System.out.println("Antes Tablero ------------- ");
            Tablero tablero = new Tablero(10);
            tablero.inicializar();
            System.out.println("Despues Tablero ----------- ");
            System.out.println("Tablero Imprimir +++++++++ Antes   ");
            System.out.println(tablero);
            System.out.println("Tablero Imprimir +++++++++ Despues ");
            TestTablero t = new TestTablero();
            System.out.println(t);
            TestTablero t2 = new TestTablero();
            System.out.println(t2);
            System.out.println(t2.toString());
           
            // int edad = Integer.parseInt("Joven");
//        } catch (java.lang.NumberFormatException edadLasTarlipes) {
//           
//            System.out.println("Por Favor, un numero. No sea vanidoso.");
//           
        } catch (TableroException tableroEnElOven) {

            System.out.println("Esploto el tabero");

        } catch (Exception epaCualquierCosa) {
            System.out.println("Esploto Todo, fijate che!!");
            epaCualquierCosa.printStackTrace();


        } finally {
            System.out.println("Buenas Tardes Sr./a");

        }


        System.out.println(matrix);
        System.out.println("[ OK ]Testablero");

    }
}
TOP

Related Classes of damas.TestMatrixDiez

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.