private void parseLastConsonant(){
  if (!validViSyll)   return;
  if (iCurPos > strSyllable.length())   strLastConsonant=ZERO;
  String strCon=strSyllable.substring(iCurPos,strSyllable.length());
  if (strCon.length() > 3) {
    validViSyll=false;
    return;
  }
  Iterator iter=alLastConsonants.iterator();
  while (iter.hasNext()) {
    String tempLastCon=(String)iter.next();
    if (strCon.equals(tempLastCon)) {
      strLastConsonant=tempLastCon;
      iCurPos+=strLastConsonant.length();
      return;
    }
  }
  strLastConsonant=ZERO;
  if (iCurPos >= strSyllable.length())   validViSyll=true;
 else   validViSyll=false;
  return;
}

private void parseLastConsonant ( ) { if ( ! validViSyll ) return ; if ( iCurPos > strSyllable . length ( ) ) strLastConsonant = ZERO ; String strCon = strSyllable . substring ( iCurPos , strSyllable . length ( ) ) ; if ( strCon . length ( ) > 3 ) { validViSyll = false ; return ; } Iterator iter = alLastConsonants . iterator ( ) ; while ( iter . hasNext ( ) ) { String tempLastCon = ( String ) iter . next ( ) ; if ( strCon . equals ( tempLastCon ) ) { strLastConsonant = tempLastCon ; iCurPos += strLastConsonant . length ( ) ; return ; } } strLastConsonant = ZERO ; if ( iCurPos >= strSyllable . length ( ) ) validViSyll = true ; else validViSyll = false ; return ; }
parses the last consonant .
