All pastes #757665 Raw Edit

kuken

public text v1 · immutable
·published 2007-11-01 14:54 UTC
rendered paste body
public int busiestHour()
    {
        int busiest = 0;
        int busiest2 = 0;
        for(int index = 0; index < hourCounts.length; index++)
        {
            if(hourCounts[index] > hourCounts[busiest])
            {
                busiest = index;
            }
        }                                 // WOHOOOO ANDREAS ÄR EN T`ÖTNER½E½! HAHAHAH !  WWWWWOOOOIIIIIIIIIIIIIIIIIIIIIIIIIIIII!!!
        
        for(int index2 = 0; index2 < hourCounts.length; index2++)
        {
            if(hourCounts[index2] > hourCounts[busiest2] && hourCounts[index2] != hourCounts[busiest])         <---- Här står felet.
            {
                busiest2 = index2;
            }
        }
        
        return busiest;
    }