Check whether current character is adjacent to previous character ( character processed in parent call ) or not .
static boolean isadjacent ( char prev , char curr ) { return ( ( curr - prev ) == 1 ) ; }