Monday, 20 March 2017

prefix postfix program in java

class operation {
public static void main(String args[])
{
int i=5,j=5;
System.out.println("The value of i after the prefixed increment :" + ++i);
System.out.println("The value of j after the postfixed increment:" +j++);
}
}

No comments:

Post a Comment