public static boolean cannotJoin(Token prevToken,Token curToken){
  String prevTokenText=prevToken.getText();
  char prevLastChar=prevTokenText.charAt(prevTokenText.length() - 1);
  String curTokenText=curToken.getText();
  char curFirstChar=curTokenText.charAt(0);
  return Character.isLetterOrDigit(prevLastChar) && Character.isLetterOrDigit(curFirstChar);
}

public static boolean cannotJoin ( Token prevToken , Token curToken ) { String prevTokenText = prevToken . getText ( ) ; char prevLastChar = prevTokenText . charAt ( prevTokenText . length ( ) - 1 ) ; String curTokenText = curToken . getText ( ) ; char curFirstChar = curTokenText . charAt ( 0 ) ; return Character . isLetterOrDigit ( prevLastChar ) && Character . isLetterOrDigit ( curFirstChar ) ; }
do not join two words like " finaldouble " or numbers like " 3double " , " double3 " , " 34 " , ( 3 and 4 are different tokens ) etc . . .
