Error message

  • Notice: Undefined offset: 64735 in user_node_load() (line 3697 of /home/novelguides/homeworkhelp.novelguide.com/modules/user/user.module).
  • Notice: Trying to get property of non-object in user_node_load() (line 3697 of /home/novelguides/homeworkhelp.novelguide.com/modules/user/user.module).
  • Notice: Undefined offset: 64735 in user_node_load() (line 3698 of /home/novelguides/homeworkhelp.novelguide.com/modules/user/user.module).
  • Notice: Trying to get property of non-object in user_node_load() (line 3698 of /home/novelguides/homeworkhelp.novelguide.com/modules/user/user.module).
  • Notice: Undefined offset: 64735 in user_node_load() (line 3699 of /home/novelguides/homeworkhelp.novelguide.com/modules/user/user.module).
  • Notice: Trying to get property of non-object in user_node_load() (line 3699 of /home/novelguides/homeworkhelp.novelguide.com/modules/user/user.module).

Java Arrays problem?

Reputation: 46
Asked 5 years ago.
549 View(s)
Java Arrays problem?

 

let say we have array "a" and array "b". Those are int arrays.

int a[ ]={1,2,3,4};
int b[ ]={5,6,7,8};

int c[ ]=new int[a.length+b.length];

we need to create another array and add the first value of "a" array to the new one. Then the 1st vale of "b" array to the new one. then the 2nd value of array "a" to the new array and then the 2nd value of array "b" to the new array etc..

is that possible to do it only using 1 variable like below.

for(int i=i<somVal;i++)
{
//we should use only the 'i' here to perform the array task and to access array's indexes
}

Delivery Time: 3 hours.
Question Category: Programming.
Shen Smith
Reputation: 99
Free
Deliver in: 3 hours

Tutor Answer

You must be login to view answer.