package LearnJava;
public class PrePostIncrementExample2 {
/**
* @param args
*/
public static void main(String[] args) {
int i = 0;
int j = 0;
int k = j++;
int m = ++i;
System.out.println(k);
System.out.println(m);
System.out.println(j);
}
}
public class PrePostIncrementExample2 {
/**
* @param args
*/
public static void main(String[] args) {
int i = 0;
int j = 0;
int k = j++;
int m = ++i;
System.out.println(k);
System.out.println(m);
System.out.println(j);
}
}
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
ReplyDeleteCore Java Training in Electronic city