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

I need to know what is Constructive Criticism?
1. How many solutions are there for the equation? x2 + 16 = 8x (Points : 1) 2 1 0
What is 127km  to the nearest 10km
What Does "Dictated But Not Read" Mean?
Help plz. What Does "All Roads Lead to Rome" Mean?
What is the equation for calculating the heat energy released during heating effect of electric current?
What Is Verbal Irony?
Five rational numbers in common fraction forms that are not integers
If a transformer has a primary with 100 V and fifty coils, and a secondary that yields 20 V, how many coils are on the secondary? a.) 200 b.) 20 c.) 50 d.)
sophia exerts a steady 40n horizontal force on a 8kg resting on a lab bench. the box slides against a horizontal friction of 24n. show that the box accelerates