Skip to content

Instantly share code, notes, and snippets.

@guaracyalima
Last active November 24, 2019 21:47
Show Gist options
  • Save guaracyalima/6516a627ab53ff84727574938f769d5d to your computer and use it in GitHub Desktop.
Save guaracyalima/6516a627ab53ff84727574938f769d5d to your computer and use it in GitHub Desktop.
E2{
void addTwo( int value ){
System.out.println(value);
value += 2;
System.out.println(value);
}
public static void main(String[] args) {
int i = 1;
System.out.println(i);
new E2().addTwo(i);
System.out.println(i);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment