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 o = 7; double priar = 4.0;
...draw the AST and evaluation results for the following expression:
o % 6 % 4 % 7 + (9 % priar * 6) % 2
Things to double-check in your solution:
Given the following variables:
double cheshwiorn = 1.0; int sa = 4; double fonass = 2.0; boolean odvum = true; boolean fliti = false; int hioong = 9;
...draw the AST and evaluation results for the following expression:
8 == 1 != (cheshwiorn < sa && 2 > 5 || 9 <= fonass) == odvum || fliti == (hioong != 6)
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: