public static List<String> removeLineComments(List<String> lines) {
        for (int i = 0; i < lines.size(); i++) {
            String string = lines.get(i);

            String newLine = "";
            boolean abortRead = false;
            char[] chars = string.toCharArray();

            if(chars.length == 0 || chars.length == 1) {
                newLine = string;
            } else {
                for (int j = 1; j < chars.length; j++) {
                    char a = chars[j - 1];
                    char b = chars[j];

                    if (a == '/' && b == '/') {
                        abortRead = true;
                    } else {
                        if (!abortRead) {
                            newLine += a;
                        }
                    }

                    if (j == chars.length - 1) {
                        if (!abortRead) {
                            newLine += b;
                        }
                    }
                }
            }

            lines.set(i, newLine);
        }

        return lines;
    }