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

Simplify the square root of negative 18
MAR is the abbreviation for
p[tex] \frac{p}{9} \leqslant \frac{2}{3} [/tex]​
11p-4=6p+1 explain steps please ASAP!!!
What is mean by physics, where the word derived from...what is mean by the word mean by science,from where it is derived from????​
conversation of Benzene diazonium chloride to toluene​
What is the common ratio of the geometric sequence below? 18, -6, 2. - ...
calculate the mid points of the line segments below using the midpoint formula given two endpoints (7,6) (10,10) ​
why [tex] \frac{1}{ \sqrt{3 } - 1} \times \frac{ \sqrt{3} + 1}{ \sqrt{3} + 1} = \frac{1 + \sqrt{3} }{2} [/tex]why not 1+✓3 ?​
When a text encourages the reader to believe or do something, the author's purpose is to entertain. to inform. to persuade. to explain.