public static void main(String[] args) { String test = "http://www.bioassayontology.org/bao#BAO_0000020"; boolean result = StringProcessing.isURL(test); System.out.println(result); }
public static String convertStringToTitleCase(String toConvert) { BreakIterator wordBreaker = BreakIterator.getWordInstance(); wordBreaker.setText(toConvert); int end; String word = ""; for (int start = wordBreaker.first(); (end = wordBreaker.next()) != BreakIterator.DONE; start = end) { word += StringProcessing.wordToTitleCase(toConvert.substring(start, end)); } return word; }