$$ \begin{array}{1} \text { 1. Find out the error of the following code and correct it. }\\ \begin{array}{1} \text { class Equals } \\ \left\{\begin{array}{1} \text { public static void main(String []...


$$<br>\begin{array}{1}<br>\text { 1. Find out the error of the following code and correct it. }\\<br>\begin{array}{1}<br>\text { class Equals } \\<br>\left\{\begin{array}{1}<br>\text { public static void main(String [] args) } \\<br>{ \\<br>\text { int } \mathrm{x}=100 ; \W<br>\text { double } \mathrm{y}=100.1 ; \\<br>\text { boolean } \mathrm{b}=(\mathrm{x}=\mathrm{y}) ; / * \text { Line } 7 * /<br>\text { System.out.println(b); }<br>\end{array}\right. \<br>\} \quad\} \quad<br>\end{array}<br>\end{array}<br>$$<br>CS. JG. 18<br>

Extracted text: $$ \begin{array}{1} \text { 1. Find out the error of the following code and correct it. }\\ \begin{array}{1} \text { class Equals } \\ \left\{\begin{array}{1} \text { public static void main(String [] args) } \\ { \\ \text { int } \mathrm{x}=100 ; \W \text { double } \mathrm{y}=100.1 ; \\ \text { boolean } \mathrm{b}=(\mathrm{x}=\mathrm{y}) ; / * \text { Line } 7 * / \text { System.out.println(b); } \end{array}\right. \ \} \quad\} \quad \end{array} \end{array} $$ CS. JG. 18

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here