#JAVA ARRAY

12 messages · Page 1 of 1 (latest)

candid harness
#

@edgy spokeu print arrays differently

#

rn ure trying to print the array object directly

#

u could use a for loop to loop through each entry of the array like u did before but print[i][j]

quaint berry
#

that's the default toString() implementation which arrays don't override

#

for simple arrays use Arrays.toString(yourArray), for multidimensional ones you might have to loop over it yourself

edgy spoke
#

How can i get the position?

candid harness
#

go through all possible '+' signs in the array

#

u start here with the index i = 1 and j = 1

#

then u need to implement logic that checks all 4 side of the number at i1=j1 and count them together, if theyre higher than the currently highest number u temp save the index and the amount

#

@edgy spoke