Skip to content

Instantly share code, notes, and snippets.

@ProgDan
Created January 25, 2011 22:02
Show Gist options
  • Save ProgDan/795766 to your computer and use it in GitHub Desktop.
Save ProgDan/795766 to your computer and use it in GitHub Desktop.
LP2: Exercícios de Revisão - 08
class Basics {
static int x = 1;
void m(int i) {
x++;
i++;
}
public static void main(String[] args) {
int y = 3;
m(y);
System.out.println(x + "," + y);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment