Skip to content

Instantly share code, notes, and snippets.

@hausen
Created April 14, 2012 15:19
Show Gist options
  • Save hausen/2385173 to your computer and use it in GitHub Desktop.
Save hausen/2385173 to your computer and use it in GitHub Desktop.
UFABC - aula PI funções exemplo 2
package funcoes;
public class PoemaDecorado2
{
public static void imprimeDecoracao()
{
System.out.println("=========================");
}
public static void main(String args[])
{
System.out.println("Minha terra tem palmeiras");
imprimeDecoracao(); // ATENÇÃO!!! PARÊNTESES!!!
System.out.println("Onde canta o sabiá");
imprimeDecoracao();
System.out.println("As aves que aqui gorjeiam");
imprimeDecoracao();
System.out.println("Não gorjeiam como lá");
imprimeDecoracao();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment