Hi all,
Can you help me to explain about my code
public class A
{
public static void main(
String[] args)
{
int x = 5;
System.out.println(x-x); // print : 0
System.out.println(x - x); // print : 0
System.out.println(x---x); // print : 1
System.out.println(x-- -x); // print : 1
System.out.println(x- --x); // print : 1
System.out.println(x- - -x); // print : 0 System.out.println(x-----x); // compile error
System.out.println(x-- - --x); // print : 2
System.out.println(x--- --x); // print : 2
System.out.println(x-- ---x); // compile error
System.out.println(x - - - - - x);// print : 0
}
}
thanks
daniel