Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

Suppose that an array sample as follows: int[] sample = new int[10]; a) fill it randomly .b) change any negative values to positive values.

user-image
Question added by Deleted user
Date Posted: 2013/10/10

int sample[] = new int[];

for(int i =0; i<sample.lenght; i++)

{

sample[i] = (int)(Math.random() *);

}

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.