Created
April 14, 2012 15:26
-
-
Save hausen/2385204 to your computer and use it in GitHub Desktop.
UFABC - aula PI funções exemplo 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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