logo CodeStepByStep logo

expressionsNumbers4

Language/Type: Java expressions % JShell

Write the resulting values of each of the following expressions. Make sure to give a value of the appropriate type, such as including a .0 at the end of a double or " " quotes around a String. (It may be difficult to compute them by hand, so you may use an evaluator such as JShell or your editor's Interactions Pane.)

123 * 456 - 789
3.14 + 1.59 * 2.65
2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2
2 + 2 + "xyz" + 3 + 3

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.