1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Harman [31]
3 years ago
5

printArray is a method that accepts one argument, an arrayof int. The method prints the contents of the array; it does not retur

n a value. inventory is an array of int that has been already declared and filled with values. Write a statementthat prints the contents of the array inventory by calling the method printArray using a declared and instantiated object named obj.
Computers and Technology
1 answer:
castortr0y [4]3 years ago
8 0

Answer:

public class ArrayTest {

   public static void main(String[] args) {

       int [ ] inventoryArray = {2,34,45,65,78,78,100};

       Array obj = new Array();

       obj.printArray(inventoryArray);

       //new Array().printArray(inventoryArray);

   }

}

class Array {

   public void printArray(int []arr) {

       for(int i =0; i<arr.length; i++){

           System.out.print(arr[i]);

           System.out.print(" ");

       }

   }

}

Explanation:

  1. Two classes are created
  2. Array and ArrayTest
  3. The class Array has the method printArray that accept an argument array and prints the contents using a for loop.
  4. In the class ArrayTest, and array is created and initialized with some values called inventoryArray.
  5. An object of the Array class is created and named obj
  6. the method printArray of the Array class is called and passed the created inventoryArray. This prints the values to the screen
You might be interested in
Select all the correct answers.
IgorC [24]

Answer:

I. Improper cable installation.

II. Interference between the signals on cables close to each other.

III. Improper connection of a network cable to the jack

Explanation:

The standard framework for the transmission of informations on the internet, it is known as the internet protocol suite or Transmission Control Protocol and Internet Protocol (TCP/IP) model. Thus, the standard Internet communications protocols which allow digital computers to transfer (prepare and forward) data over long distances is the TCP/IP suite.

In this scenario, Mark is unable to connect to the internet or to any of the computers on his network, while nearby computers don’t have this problem. Therefore, the three issues which could be causing the problem are;

I. Improper cable installation: this involves not installing the ethernet cable in the correct destination port.

II. Interference between the signals on cables close to each other: interference usually results in the disruption in network signals.

III. Improper connection of a network cable to the jack: the right connectors such as RJ45 should be used.

6 0
3 years ago
1. Technician A says you can identify a hybrid vehicle by the badging on the engine cover. Technician B says you can identify a
Liono4ka [1.6K]

Answer:

It's B i did the quiz

and got an 100%

Explanation:

Hope this helps :D

6 0
2 years ago
Type the correct answer in the box. Spell all words correctly.
scoundrel [369]

Answer:

Patsy is possibly using a cable television system.

Explanation:

The cable television system is the private television service provision system that is provided not through signals captured by means of antennas, but through coaxial cables that are connected from the home to the poles belonging to the providers, located on the public road.

The advantages of wired televission are relatively high sound and image quality with a minimum of interference with the simplicity and low cost of subscriber receivers.

5 0
3 years ago
7. What are the two keyboard keys you can press at the same time to use the Paste command? (1.0 points) Lesson 5 (5.0 points)
inna [77]

Answer:

Ctrl + v

Explanation:

7 0
3 years ago
You are considering upgrading from Office 2010 to Office 2013. Which of the following is NOT true of either Office 2010 or Offic
Dmitry [639]

office 2013 can intergrute directly with the cloud

5 0
3 years ago
Other questions:
  • Which statement is an example of an opinion from an online source?
    14·2 answers
  • Which tab allows you to modify the width of a page margins in Microsoft word?
    7·2 answers
  • What are the two ways to print a document?
    11·1 answer
  • Talia was a scientist whose research compared the birth rates of young
    12·2 answers
  • I umm… really need helpp<br> Can someone help me out <br> I’ll even mark u as brainiest !
    12·1 answer
  • Give five example of secondary storage device, stating their function and storage capacity​
    6·1 answer
  • Select the correct answer from each drop-down menu.
    12·1 answer
  • Which option identifies the type of engineers described in the following scenario?
    6·1 answer
  • The capacity of your hand drive is measured in​
    12·1 answer
  • Write a program in c# that simulates the roll of two six sided dice.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!