MikeHo
MikeHo MikeHo
  • 23-10-2017
  • Computers and Technology
contestada

(Java) Can anyone help me with this question ???

Java Can anyone help me with this question class=

Respuesta :

rsmith6559
rsmith6559 rsmith6559
  • 23-10-2017
Your print function is too specific. It should be more like:

for( int i = 0; i < data.length; i++ )
    System.out.print( data[ i ] );


append() would be something like:

int[] c = new int[ a.length + b.length ];
int j = 0;
for( int i = 0; i < a.length; i++ )
    c[ i ] = a[ i ];

for( int i = j; i < ( b.length + a.length ); i++ )
    c[ i ] = b[ i ];
return( c );

Answer Link

Otras preguntas

What is a resistor? A. a light bulb B.a switch C. a battery
Which set of words best describes the woman's character? A. worried, shy, intimidated B. energetic, attractive, friendly OC. Independent, eccentric, nervous OD.
Please answer this correctly
Which complex number is represented by the graph
Describe a problem you face in your everyday life or at work. How might you use hypothesis testing to find a solution or improvement to that problem? Would you
What is the tone from the poem by Emily Dickinson
Solve the compound inequality.
What is the point when earth is closest
28.Which sentence below has used a semicolon correctly? 1.Celia knew the ice-cream would make her feel sick; she was intolerant to dairy of any kind. 2.Celia
A square piece of paper has an area of x2 square units. A rectangular strip with a width of 2 units and a length of x units is cut off of the square piece of pa