Created
April 14, 2012 15:19
-
-
Save hausen/2385173 to your computer and use it in GitHub Desktop.
UFABC - aula PI funções exemplo 2
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 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