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 cado = 2; int sco = 7;
...draw the AST and evaluation results for the following expression:
(cado / 3 - sco)
Things to double-check in your solution:
Given the following variables:
int pustdid = 6; double cessen = 2.0; int pid = 8;
...draw the AST and evaluation results for the following expression:
6 > pustdid && cessen < pid
Things to double-check in your solution:
Draw the AST and evaluation results for the following expression:
0 + "1" + 2 + 3
Things to double-check in your solution:
Related puzzles: