Skip to content

Instantly share code, notes, and snippets.

@samueltcsantos
Last active Aug 29, 2015
Embed
What would you like to do?
Método toString
/**
* Mostra os dados de uma conta.
*/
public String toString(){
SimpleDateFormat formataData = new SimpleDateFormat("dd 'de' MMMM 'de' yyyy - HH:mm:ss");
return " Data de Criação: " + formataData.format( getDataDeCriacao().getTime() ) +
" Numero: " + getNumero() + " Saldo: " + getSaldo();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment