andrewcoleman
andrewcoleman andrewcoleman
  • 17-03-2021
  • Computers and Technology
contestada

I am getting two expected errors on this code for the bottom two “public static void” lines. Can someone tell me how I can fix it? Thanks

I am getting two expected errors on this code for the bottom two public static void lines Can someone tell me how I can fix it Thanks class=

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 22-03-2021

Answer:

Declare variable b in both lines

i.e. int b

Explanation:

In the given code, the parameters of both functions were not properly declared.

When listing the parameters, the data type must be clearly stated for all parameters (individually)

In the declaration of both functions, only variable a is declared as integer while b is undeclared.

So, the correction is to declare b as integer

Answer Link

Otras preguntas

Why did Governor Wallace resist enrolling African Americans in the University of Alabama? A. He thought integration was a states’ rights issue. B. He thought
Effect of contiguity constraint in planning??
A water yank holds 18,000 gallons. How long will it take for the water level to reach 6,000 gallons if the water is used at an average rate of 450 gallons per d
The probability that Gavyn wins a raffle is given by the expression o/p .
Write the equation of the line that passes through point (-10, -5) and is parallel to the line represented by the equation y = -2x + 7.
what is the image of the point (-6,2) after a 90 degree counterclockwise rotation
We the People of the United States, in Order to form a more perfect Union, establish Justice, insure domestic Tranquility, provide for the common defense, promo
que hay encima de tu pupitre?
98 points!!!!!!!! what’s the difference between elements molecules and atoms
Which expression is equivalent to (2x^4 y)^3 PLEASE HURRY!!!