Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class PrimeiroPrograma {
- // Variáveis ‘x’ e ‘y’ são Globais
- int x;
- int y;
- // Variáveis ‘x’ e ‘y’ são Locais
- public void outroMetodo() {
- int x = 2, y = 4;
- this.x = 5;
- this.y = 7;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement