/* Program name: Array02.java
* Author name: Place your name here
* Description:
*/
// Class name
public class Array02 {
// Main function
public static void main ( String[] args ) {
int items[] = {4,5,0,7};
int hold[] = {6,2,1,8,5};
System.out.println(items,0,hold,0,items.length);
}
}
I wrote a program based on my study guide that copy a data from items[0] and paste it into hold[0] which will replace the data in hold[0]
But it gaves an error during the compilation. Can anyone help me to fix this thanks.