public static void main(String args[]){
        int input[] = {8,9,0,2,2,2};
        LargestMultipleOf3inArray lma = new LargestMultipleOf3inArray();
        int output[] = lma.largestMultiple(input);
        for(int a : output){
            System.out.print(a + " ");
        }
    }
http://www.geeksforgeeks.org/find-the-largest-number-multiple-of-3/
src/com/interview/number/LargestMultipleOf3inArray.java