@@ -0,0 +1,1010 @@
+package problem18.triangle;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.File;%0Aimport java.io.FileReader;%0Aimport java.io.IOException;%0Aimport java.util.ArrayList;%0A%0A/**%0A *%0A * @author arvganesh%0A */%0Apublic class Problem18Triangle %7B%0A%0A    public static void main(String%5B%5D args) throws IOException %7B%0A        // reading the pyramid from a file%0A        ArrayList%3CString%3E list = new ArrayList%3C%3E();%0A        File file = new File(%22/home/arvganesh/Desktop/triangle.txt%22);%0A        try (BufferedReader br = new BufferedReader(new FileReader(file))) %7B%0A            String line = null;%0A            int sum = 0;%0A            String%5B%5D array = %7B%22a%22, %22b%22, %22c%22, %22d%22, %22e%22, %22f%22, %22g%22, %22h%22, %22i%22, %22j%22, %22k%22, %22l%22, %22m%22, %22n%22, %22o%22%7D;%0A%0A            while ((line = br.readLine()) != null) %7B%0A                for (String value : line.split(%22 %22)) %7B%0A                    if (!value.equals(%22%22)) %7B%0A%0A                        list.add(value);%0A%0A                    %7D%0A%0A                %7D%0A%0A            %7D%0A            System.out.println(list);%0A        %7D%0A    %7D%0A%0A%7D%0A

problem 18 code. Not a solution