private boolean isSmileyBreak(int index){
  if (index > 0 && index < text.length()) {
    if (isSmileyBreak(text.charAt(index - 1),text.charAt(index))) {
      return true;
    }
  }
  return false;
}

private boolean isSmileyBreak ( int index ) { if ( index > 0 && index < text . length ( ) ) { if ( isSmileyBreak ( text . charAt ( index - 1 ) , text . charAt ( index ) ) ) { return true ; } } return false ; }
determines whether the given index could be a possible smiley break .
