0

Help with the code

1. Please tell me if I create redundancies or other mistakes that dont affect compilation but do affect the overall performance and understanding of the code 2. The program never displays the first array as an array with the greatest members' sum. Need help with that. https://code.sololearn.com/c8gZVP3ubpfW/?ref=app

18th Apr 2017, 5:37 PM
Alex Snaidars
Alex Snaidars - avatar
1 Antwort
+ 1
I didn't see all your code, but it's good practice to use constants (final variables) instead ir "magical numbers" like those 3 and 4. You could do: final int ARRAY_SIZE 3; final int ARRAY_SIZE2 4; It helps to read after. Also i've never seen int [][][], all i know are bidimensional arrays: int [][], with the first array being the rows and the 2nd the columms.
18th Apr 2017, 8:14 PM
José Pereira
José Pereira - avatar