Examples/AirlineFaresNew/src/main/java/com/cs6240/airline/MapReduceJob.java
/**
	 * 
	 * @param row : the whole row of a csv input 
	 * @return row without a quote in the individual columns.
	 */
@param row : the whole row of a csv input
@return row without a quote in the individual columns.
@param row : the whole row of a csv input @return row without a quote in the individual columns .
private static String parseCityName(String row) {
		StringBuilder builder = new StringBuilder(row);
		boolean inQuotes = false;
		for (int currentIndex = 0; currentIndex < builder.length(); currentIndex++) {
			char currentChar = builder.charAt(currentIndex);
			if (currentChar == '\"') inQuotes = !inQuotes; 
			if (currentChar == ',' && inQuotes) {
				builder.setCharAt(currentIndex, ';'); 
			}
		}
		return builder.toString();
	}
private static String parseCityName ( String row ) { StringBuilder builder = new StringBuilder ( row ) ; boolean inQuotes = false ; for ( int currentIndex = 0 ; currentIndex < builder . length ( ) ; currentIndex ++ ) { char currentChar = builder . charAt ( currentIndex ) ; if ( currentChar == '\"' ) inQuotes = ! inQuotes ; if ( currentChar == ',' && inQuotes ) { builder . setCharAt ( currentIndex , ';' ) ; } } return builder . toString ( ) ; }
@param row : the whole row of a csv input
 @return row without a quote in the individual columns.
@param row : the whole row of a csv input @return row without a quote in the individual columns .
//below steps are done to replace any "comma" inside the data with a "semicolon" //code referred from stack overflow // toggle state