You might want to check out Project Euler.
Type: Posts; User: KevinWorkman
You might want to check out Project Euler.
What happened when you tested that assumption with a print statement? :)
No, it's initializing maxC to whatever is in the first element of the array. I suggest you step through your code with a debugger, or at least add some print statements, to make it more obvious...
Recommended reading: Arrays (The Java™ Tutorials > Learning the Java Language > Language Basics)