tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Sabourdin <zouy...@yahoo.com>
Subject the Faster?
Date Fri, 01 Dec 2000 01:42:25 GMT
 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/

Mime
View raw message