For each of the Java expressions below:
Be sure that your tree accurately reflects how Java would evaluate the expression.
Given the following variables:
int phecpo = 2; int oli = 9; int zacra = 9; int heoun = 2;
...draw the AST and evaluation results for the following expression:
9 - 2 % 1 * phecpo + 6 % oli % zacra / heoun
Things to double-check in your solution:
Given the following variables:
int iss = 3; boolean badrion = false; int tawheaet = 5; boolean untsa = true; int runda = 8; boolean censpousm = false; int xiing = 9;
...draw the AST and evaluation results for the following expression:
8 != iss != badrion && tawheaet > 6 == untsa != !(runda <= 4) || censpousm != 6 <= xiing
Things to double-check in your solution:
Draw the AST and evaluation results for the following expression:
0 + 1 + 2 + 3 + 4 + "5" + (6 + 7 + "8")
Things to double-check in your solution:
Related puzzles: