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

which is the center of the circle
Plz help ASAP this is due tomorrow
the endons.descrwritealintrodefinconfidefinneutr​
ILL GIVE BRAINLEST, find the area of the square or rectangle. please show work :)
What are the values of Limit of g (x) as x approaches 33 minus and Limit of g (x) as x approaches 33 plus?
Spanish: ¿A través de la convergencia las empresas que buscan? English: ¿Through convergence companies looking for?
Work out the equation of the line which passes through the point (-1, 2) and is paralell to the line y = x + 4
A weather balloon is inflated to a volume of 26.7 L at a pressure of 748 mmHg and a temperature of 28.4 °C. The balloon rises in the atmosphere to an altitude w
Can someone answer this please I’ll give brainliest
b) What are our basic human rights ?​