package appdos; /* * TestaBanco.java * * Created on 23 de Fevereiro de 2006, 09:02 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ import banco.*; import java.util.ArrayList; /** * * @author Administrador */ public class TestaBanco { public static void main( String[] args ){ Cliente cli = new Cliente(); cli.setNome( args[0] ); ContaCorrente c = new ContaCorrente(); c.setNumero( Integer.parseInt( args[1] ) ); cli.adicionarContaCorrente(c); c = new ContaCorrente(); c.setNumero( Integer.parseInt( args[2] ) ); cli.adicionarContaCorrente(c); ArrayList contas = cli.getContas(); System.out.println( "Dados do cliente " + cli.getNome() + ":" ); for( int i = 0; i < contas.size(); i++ ){ System.out.println( contas.get( i ).getNumero() ); } } }