Today I have some questions, then , could somebody tell me why?
Why j is not 4 but 5? My memory error?
public class sugizo_can{
public static void main(String args[])
{int i=8,j=4,l=0;
int a=5,b=6;
float f=1.0f;
double d=2.5d;
int m=i%j;
f=i/j;
l=++i+j++;
System.out.println("f="+f);
System.out.println("l="+l);
System.out.println("i="+i);
System.out.println("j="+j);//I think it's must be 4,but why 5?
int c=a>b?a:b;
System.out.println("c="+c);
d+=a;
System.out.println("d+a="+d);
int n=(int)(d+b);
System.out.println("n="+n);
boolean bool=a>b;
System.out.println("bool="+bool);
boolean firstbool=true;
boolean secondbool=bool&&firstbool;
System.out.println("secondbool="+secondbool);
String s="Good morning,sugizo_can!";
System.out.println(s);
}
}
look the result:
<!--EndFragment-->