Skip to content

Instantly share code, notes, and snippets.

@coolsasindu
Last active March 15, 2021 08:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coolsasindu/a8f1f02980101b523ff2fcd8217c31f2 to your computer and use it in GitHub Desktop.
Save coolsasindu/a8f1f02980101b523ff2fcd8217c31f2 to your computer and use it in GitHub Desktop.
class prefix {
public static void main(String args[]){
int i = 5 ;
System.out.println(++i); // Output is 6
System.out.println(--i); // Output is 4
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment