HW08-JRollinson/Parser.java
private static String removeSpaces(String line)
    {
        String result = "";

        if (line.length() != 0)
        {
            String[] segment = line.split(" ");

            for (String s: segment)
            {
                result += s;
            }
        }
        return result;
    }
// POST-CONDITION: All " " have been removed from the String line.

POST-CONDITION: All " " have been removed from the String line.
POST - CONDITION : All " " have been removed from the String line .
private static String removeSpaces(String line)
    {
        String result = "";
        if (line.length() != 0)
        {
            String[] segment = line.split(" ");
            for (String s: segment)
            {
                result += s;
            }
        }
        return result;
    }
private static String removeSpaces ( String line ) { String result = "" ; if ( line . length ( ) != 0 ) { String [ ] segment = line . split ( " " ) ; for ( String s : segment ) { result += s ; } } return result ; }
POST-CONDITION: All " " have been removed from the String line.
POST - CONDITION : All " " have been removed from the String line .