The k loop does the job, but isn't necessary...


//check for all negative...the check for the max series
int sum = 0;
for ( int i = 0, st = 0; i < a.length; i++, st = 0 ){
for ( int j = i; j...