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

help help help pleaseeeee!!!!!!
For each value of y determine weather it is a solution to y-42=6
How can cause and effect relate to personal narrative?
I need help with this because I really don’t understand it
In the factory of the future video case, what does goldman sachs anticipate will be the impact of an increased focus on automation and cost savings?.
The main focus of Israel’s economy is the production of __________. A. clothing and textile products B. food products C. oil products D. technological products
15 POINTS!!! Given f(x) = 3x³ + kx- 10, and x - 2 is a factor of f(x), then what is the value of k?
5. How many hydrogen atoms are in 1 gallon of octane? Density of octane= 0.7028 g/mL, 3780 mL = 1 gal
a 2.29 kg block starts from rest at the top of a 22.3◦ incline and accelerates uniformly down the incline, moving 2.95 m in 1.94 s. the acceleration of gravity
how does shakespeare develop the setting in julius caesar