Menu



Java program for increment of a number


Increment.java

public class Increment
{
public static void main(String[] args)
{
int p = 5;
int q = 5;
p++;
q++;
System.out.println("p = " + p);
System.out.println("q = " + q);
int m = p++;
int n = ++q;
System.out.println("m = " + m);
System.out.println("n = " + n);
}
}










Connection failed: SQLSTATE[28000] [1045] Access denied for user 'studentdb'@'localhost' (using password: YES)

Subscribe