given expression is 3 + 4 < 3 * 4 - 3 && 3 || false
= 3 + 4 < 12 - 3 && 3 || false
= 7 < 12 - 3 && 3 || false
= 7 < 9 && 3 || false
= true && 3 || false
It gives error in java because && operator should have both operands type boolean but here one type is boolean and another type is int. So it gives error in java.
But if we take the value 3 as true as in c language, the value of the expression = true && 3 || false
= true || false
= true
So its true.
douglass -default - SSH Secure Shell Ele Edit View Window Help Quick Connect i Profiles Problem...
could you please help me with this problem, also I
need a little text so I can understand how you solved the
problem?
import java.io.File; import java.util.Scanner; /** *
This program lists the files in a directory specified by * the
user. The user is asked to type in a directory name. * If the name
entered by the user is not a directory, a * message is printed and
the program ends. */ public class DirectoryList { public static...
CASE 20 Enron: Not Accounting for the Future* INTRODUCTION Once upon a time, there was a gleaming office tower in Houston, Texas. In front of that gleaming tower was a giant "E" slowly revolving, flashing in the hot Texas sun. But in 2001, the Enron Corporation, which once ranked among the top Fortune 500 companies, would collapse under a mountain of debt that had been concealed through a complex scheme of off-balance-sheet partnerships. Forced to declare bankruptcy, the energy firm...