72.4k views
1 vote
PrintErrorDescription is a function that accepts one int parameter and returns no value. Write a statement that calls the function printErrorDescription, passing it the value 14.

User Cerovec
by
7.9k points

1 Answer

0 votes

Answer:

  1. public static void main(String[] args) {
  2. printErrorDescription(14);
  3. }
  4. public static void printErrorDescription(int value){
  5. //some codes
  6. }

Step-by-step explanation:

Given a function printErrorDescription() with one parameter (Line 5 - 7). To call the function, we can write the function name and place the value of 14 within the parenthesis (Line 2). The value of 14 is a function argument. The value of 14 will be processed within the function to meet some purposes.

User Ziad Halabi
by
8.4k points

No related questions found