1. Engineering
  2. Computer Science
  3. find the errors in the following code and write the...

Question: find the errors in the following code and write the...

Question details

JAVA 

Find the errors in the following code and write the corrected code and output:

//Warning! The Code Contains Errors!

int value = 199;

        if ( value = 177)

            System.out.println(value);

        else if (value >= 100);

        {

                value+; //increment value by 1

                System.out.println(value);

        } 

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution