You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Charles Sabourdin <zo...@yahoo.com> on 2000/12/01 02:42:25 UTC

the Faster?

 Hi I was wondering what code would be faster between
:

<%
String thekeySearche = "";
if(request.getParameter("thekeySearche")!=null){
  thekeySearche = request.getParameter("title");
}%>
and 
<%
StringBuffer thekeySearche = new StringBuffer("");
if(request.getParameter("thekeySearche")!=null){
thekeySearche.append(request.getParameter("title"));
}%>

if i only use thekeySearche  
in statement like that :
 if thekeySearche.equals("toto"){..} 
or 
 if thekeySearche.toString().equals("toto"){..}

;)
 



__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/