Booleans, and comments


#1

https://www.codecademy.com/courses/learn-java/lessons/conditionals-control-flow/exercises/boolean-operators-precedence?action=lesson_resume

       I'm really confused where I'm supposed to put my booleans, and plus do I erase the "/**/"? before the expression?

   Thank you, and I look forward from hearing an answer!

#2

Remove the comments, replace them with booleans.

Example result:

boolean riddle = !( 1 < 8 || (5 > 2 && 3 < 5));

#3

Please I need help : Write a program that will sum the digits of a number. For example if
the number is 124, then the sum of its digits is 7 = 1+2+4


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.