public static void main(String args[]){
        int input[] = {3, 4, 5, 6, 8, 9, 15};
        NumberOfTrianglesInUnsortedArray not = new NumberOfTrianglesInUnsortedArray();
        System.out.println(not.numberOfTriangles(input));
    }
http://www.geeksforgeeks.org/find-number-of-triangles-possible/
src/com/interview/array/NumberOfTrianglesInUnsortedArray.java