
-----------------------------------
cool dude
Sat Jun 10, 2006 9:31 pm

adding arrays
-----------------------------------
i'm trying to add arrays and the only problem i'm having is that on line 17 it says i need a semicolon. i have one but it still shows the same error. here's the code: 


public class problem2 { 
public static void main(String[] args) { 
   long total; 
   long[] sum = new long[999999]; 
   total = 0; 
       
   for(long i = 1; i 