increment java
int i = 5;
  i++;
// i = 6java increments
// you can use two types of increments
int x = 0;
//Postincrement
System.out.println(x++); //this prints 0 because increments after execute print
//Pretincrement      // x = 1 and + 1 again is equal to 2 in the second print
System.out.println(++x); // this prints 2 because increments before execute printCopyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us
