I want to know the difference between post-increment and pre-increment, basically, I wrote two same codes together by just changing the variables to check whether there is any difference in post and pre-increment. but it's the same??
int tableOf = 4;
for (int i = 1; i <= 10; ++i) {
System.out.println(tableOf * i);
System.out.println(i);
}
int tableof = 4;
for (int y = 1; y <= 10; y++) {
System.out.println(tableof * y);
System.out.println(y);
}