This program displays false results in the 2nd line B, if the first sentence is true, he considers the 2nd condition true without testing. can you offer me sulutions:
int N=10, P=5;
char C='S';
boolean B;
N=5;P=2;
B= (N++>P)||(P++ !=3);
System.out.println("A : N= "+N+" P="+P+" B="+B);
N=5; P=2;
B= (N++ <P)|| (P++ !=3);
System.out.println("B : N= "+N+" P="+P+" B="+B);
N=5; P=2;
B= (++N ==3) && (++P ==3);
System.out.println("C : N= "+N+" P="+P+" B="+B);
N=5; P=2;
B= (++N ==6) && (++P ==3);
System.out.println("D : N= "+N+" P="+P+" B="+B);
N=C;
System.out.println("\nE :C= "+C+" N = "+N);
[enter image description here][1]
[1]: https://i.stack.imgur.com/Le5lE.png result of the program