public List<String> extractURLs(final String text){
  if (text == null || text.length() == 0)   return Collections.emptyList();
  final ArrayList<String> urls=new ArrayList<String>();
  for (  final Entity entity : extractURLsWithIndices(text)) {
    urls.add(entity.value);
  }
  return urls;
}

public List < String > extractURLs ( final String text ) { if ( text == null || text . length ( ) == 0 ) return Collections . emptyList ( ) ; final ArrayList < String > urls = new ArrayList < String > ( ) ; for ( final Entity entity : extractURLsWithIndices ( text ) ) { urls . add ( entity . value ) ; } return urls ; }
extract url references from tweet text .
