1.

Find out the error and the reason for the error in the following code. Also write the corrected code. a, b = "5.0","10.0"​

Answer»

on you can write the EXPRESSION as it isa, b = "5.0","10.0"But in JAVA, the expression is not correctBecause Java do not accept the INPUT in this formEither you NEED to create a String arrayString[] a = {"5.0","10.0"};ORYOU need to declare two separate stringsString a = "5.0";String b = "10.0";



Discussion

No Comment Found