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
REY [17]
2 years ago
15

Write a public static method named printArray, that takes two arguments. The first argument is an Array of int and the second ar

gument is a String. The method should print out a list of the values in the array, each separated by the value of the second argument.
Computers and Technology
1 answer:
Serjik [45]2 years ago
5 0

Answer:

Written in Java

public static void printArray(int myarr[], String s){

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

           System.out.print(myarr[i]+s);

       }

   }

Explanation:

This defines the static method alongside the array and the string variable

public static void printArray(int myarr[], String s){

The following iteration iterates through the elements of the array

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

This line prints each element of the array followed by the string literal

           System.out.print(myarr[i]+s);

       }

   }

The method can be called from main using:

<em>printArray(myarr,s);</em>

Where myarr and s are local variables of the main

You might be interested in
Where do we manage POS? ​
valkas [14]

Explanation:

<em>The</em><em> </em><em>POS</em><em> </em><em>serves</em><em> </em><em>as</em><em> </em><em>the</em><em> </em><em>central</em><em> </em><em>component</em><em> </em><em>for</em><em> </em><em>your</em><em> </em><em>business</em><em>;</em><em> </em><em>it's</em><em> </em><em>the</em><em> </em><em>hub</em><em> </em><em>where</em><em> </em><em>everything</em><em> </em><em>like</em><em> </em><em>sales</em><em>,</em><em> </em><em>inventory</em><em> </em><em>management</em><em> </em><em>,</em><em> </em><em>payment</em><em> </em><em>processing</em><em>,</em><em> </em><em>and</em><em> </em><em>customer</em><em> </em><em>management</em><em> </em><em>merges</em><em>.</em><em> </em>

3 0
2 years ago
if you want to have certain icons available regardless of what tab you are using you should add them to the
jarptica [38.1K]
The hotbar is what i think it is called but it is basically the bar of stuff at the bottom of the screen on windows computers.
4 0
2 years ago
What is the size of the array shoeSize? double [] shoeSize = {8.5, 7, 12.5, 9.5, 9, 11.5, 6}
r-ruslan [8.4K]

The size of the array shoeSize? double [] shoeSize = {8.5, 7, 12.5, 9.5, 9, 11.5, 6} is 6

Explanation:

  • Arrays are zero-based : the seven elements of a 7-element array are numbered from 0 to 6. Hence, the size of the array is 6.
  • An array is collection of items stored at memory locations. The main aim of an array is to store multiple items of same type together.
  • An array is a collection of one or more values of the same type. Each value is called an element of the array.
  • The location of an item in an array is known as array indexing.
  • The first array index is 0 or 1 and indexes continue through the natural numbers.
  • The upper bound of an array is generally language and possibly system specific.
  • An array type is a data type that represents a collection of elements each selected by one or more identifying keys that can be computed at run time during program execution.

6 0
2 years ago
How to change the microsoft word pages to black background
slamgirl [31]

Answer:

To turn on Dark mode in the Word canvas, select File > Account > Office Theme > Black. 2. Once the black theme is set, you can toggle between the black and white page background colors by selecting View > Switch Modes from the ribbon.

6 0
2 years ago
Which Agile framework breaks workload into smaller increments to improve team focus and simplify testing?
stellarik [79]

Answer:

Kanban. This agile framework gives you a visualized workflow so you can break work down into small pieces.

6 0
2 years ago
Read 2 more answers
Other questions:
  • To guarantee that the member variables of a class are initialized, you use ____.
    10·1 answer
  • A __________ is the column of data in a database that is used as the basis for arranging data.
    8·2 answers
  • Apple's os x and microsoft windows are examples of ________ software.
    13·1 answer
  • What do you think about the future of computers?​
    14·1 answer
  • What type of technology we need to use in order to make sure that users can freely room from one room to another one without wi-
    14·1 answer
  • Pleaseeeeeeeee I will give a brainliest
    7·1 answer
  • Before you post anything online what are at least 5 things you should keep in mind?
    5·1 answer
  • Winston typically spends about $200 per year playing the lottery. If he took that same amount of money, for 30 years, and invest
    12·1 answer
  • Which of the following is an example of how cookies are used? To create a stronger password To customize advertisements based on
    11·1 answer
  • I have asked that my account that i have been charged all summer long be canceled. i need a return call today to talk to someone
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!