getCharSpace function

int getCharSpace(
  1. String characterOne,
  2. String characterTwo
)

This method returns the space between two characters as an integer.

Implementation

int getCharSpace(String characterOne, String characterTwo) {
  int charOnePos = getCharPositon(characterOne);
  int charTwoPos = getCharPositon(characterTwo);
  int space = charTwoPos - charOnePos;
  return space;
}