src/com/mmpp/motivationapp/backend/Motivator.java
public void addHistoryMessage(String s) {
		String before = "";
		String after = "";
		int i;
		for(i = 0; s.charAt(i) != '*'; i++){
			before += s.charAt(i);
		}
		i++;
		for(; i<s.length(); i++) {
			after += s.charAt(i);
		}
		HistoryMessage m = new HistoryMessage(before, after);
		historyMessageBox.add(m);
	}
/**
	 * Add a history message template to the history message box
	 * @param s the string containing both parts of the template
	 */
Add a history message template to the history message box
@param s the string containing both parts of the template
Add a history message template to the history message box @param s the string containing both parts of the template
public void addHistoryMessage(String s) {
		String before = "";
		String after = "";
		int i;
		for(i = 0; s.charAt(i) != '*'; i++){
			before += s.charAt(i);
		}
		i++;
		for(; i<s.length(); i++) {
			after += s.charAt(i);
		}
		HistoryMessage m = new HistoryMessage(before, after);
		historyMessageBox.add(m);
	}
public void addHistoryMessage ( String s ) { String before = "" ; String after = "" ; int i ; for ( i = 0 ; s . charAt ( i ) != '*' ; i ++ ) { before += s . charAt ( i ) ; } i ++ ; for ( ; i < s . length ( ) ; i ++ ) { after += s . charAt ( i ) ; } HistoryMessage m = new HistoryMessage ( before , after ) ; historyMessageBox . add ( m ) ; }
Add a history message template to the history message box
 @param s the string containing both parts of the template
Add a history message template to the history message box @param s the string containing both parts of the template