Try to be patient with me. Again I am wondering about
the following thing:
My code looks like this:
boolean te=true; //here I assign te variable to true
if(te=false) //here I don't compare the variable, but reassign it to false
//and according to my understanding, here the expression assignment is
//done, hence, te=false, resulting in true. Shouldn't it then output true
//and not false?
//Does the compiler decide where to go based on the expression result
//succeeding or based on result turning te-variable to false?
{
System.out.println("true");
}
else
{
System.out.println("false");
}
Thanks again! JK
[ February 06, 2004: Message edited by: janne kallio ]