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

If a cell was observed under the microscope and found to have a rigid cell wall and be green in colo that cell is most likely a?
Find the roots of the polynomial function f(x) = x3 + 2x2 + x x = 0, x = –1 x = 0, x = 1 with multiplicity 2 x = 0, x = –1 with multiplicity 2
Elena is making a grape drink. the recipe calls for 2 parts grape juice concentrate to 6 parts water. elena would like to make 80 fluid ounces of the grape drin
if a client faints an HHA should
Which of the following is the last step I creating a budget
reseña de la historia "El monte de las animas"
How can health literacy how people become more productive?
How many lines of symmetry are in a regular n-gon?
What is the answer ?
Anna and Maya are competing in a dance tournament where dance moves are worth a certain number of points if a dance move it's done correctly the dancer earns po