I am writing a piece of code in which i have to find only complete words for example if i have
String str = \"today is tuesday\";
and I\'m
String str = "today is tuesday"; StringTokenizer stringTokenizer = new StringTokenizer(str); bool exists = false; while (stringTokenizer.hasMoreTokens()) { if (stringTokenizer.nextToken().equals("t")) { exists = true; break; } }