If you want to get only the first one, I'd use the first sedj's example. But be sure there is at least one "<br>" or an exception will be thrown.
If you want to take all names, use the second one. But the method split(), AFAIK is since JDK 1.4. If you have an older version you can use StringTokenizer class.
Cheers,
Dian