hi all! i'm having difficulties with arrays in java. i've got a few questions that i'm kind of stuck on and their really bugging me! i'm new to java so if anyone can help with the following questions, i'd REALY appreciate it!!!!
1) Write a loop that creates an integer array p with the values as shown:
3 6 9 12 15 18 21 24 27
2) Use another loop which makes adjustments to the values of the array p in a) as shown:
3 6 10 14 18 22 26 29 32
3) Declare a two dimensional array with 10 rows and 10 columns initialise:
a) All the elements in the 6th row to -1
b) All the elements of the 7th column to 4
4)
1 2 3 4 5
3 -22 6 8 -3
14 9 31 -1 0
52 1 13 71 29
65 15 22 33 53
Write the loops needed to print the diagonal elements of the above two dimensional array. Te elements of each diagonal are
a) 1 –22 31 71 53
b) 5 8 31 1 65
PLEASE PLEASE PLEASE can sumone help me answer these questions!! THANKS!!!!!!!!!!!!!!