Or better yet, use StringBuffer to build up complex strings; much more efficient than String concatentation.
Or even better yet, don't build up markup in strings! Either use a template system like
JSP, or if you must build markup in
Java, explore the use of packages like Jakarta ECS that allow you to build a DOM representing your markup as objects, and then serialize it to html, xhtml or other markup.
hth,
bear