Home > Back-end >  Why don't understand asked, PLS call printArr to red...
Why don't understand asked, PLS call printArr to red...

Time:12-08

Package T1;

Public class array to merge with the ascending and descending order {
Private static int [] makeNewArr (int [] a, int [] b) {
//create a space saving array
Int [] c=new int [a. ength + b.l ength];
//assignment of a
for (int i=0; iC=[I] a [I];
}
//to assignment b
for (int i=0; iC [a. ength + I] [I]=b;
}
Return the c;
}
Public static void main (String [] args) {
Int [] a={1,7,9,11,13,15,17,19};
,4,6,8,10 int [] b={2};
Int [] c=makeNewArr (a, b);
PrintArray (c);
}
}


CodePudding user response:

This all Chinese character name, aren't you afraid of your teacher gas to do it in the middle of the night, error, array subscript bounds, best can standardize the naming rules

CodePudding user response:

Couldn't find pringArray this approach, where you define?

CodePudding user response:

refer to the second floor icoolno1 response:
didn't find pringArray this approach, where you define?

Ok, thank you

CodePudding user response:

refer to the second floor icoolno1 response:
didn't find pringArray this approach, where you define?

Cough cough cough cough cough, uh-huh
  • Related