Skip to content

Instantly share code, notes, and snippets.

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