Re: String manipulation

2000-07-06 Thread Martin Schröder
On 2000-07-05 12:42:21 -0700, Man Chi Ly wrote: > On Wed, 5 Jul 2000, Tony J. Paul wrote: > > it like this, > > > > StringBuffer sb=new StringBuffer(); > > sb.append("SELECT COF_NAME, "); > > sb.append("SALES FROM COFFEES "); > > stmt.executeQuery(sb.toString()); > > I recall

Re: String manipulation and optimization

2000-07-05 Thread Jason Reich
The java disassembler (javap -c) is a great tool for this.  For example, try a slightly modified version of your code: class test { public void test() { // original example String s; s = "SELECT COF_NAME, "; s += "SAL

Re: String manipulation

2000-07-05 Thread Man Chi Ly
On Wed, 5 Jul 2000, Tony J. Paul wrote: > Hi brEezE, > > I am new to this list. I don't know if this will suffice your > requirement. Anyway, Why don't you try StringBuffer class? You can use > it like this, > > StringBuffer sb=new StringBuffer(); > sb.append("SELECT COF_NAME,

Re: String manipulation

2000-07-05 Thread Tony J. Paul
Hi brEezE, I am new to this list. I don't know if this will suffice your requirement. Anyway, Why don't you try StringBuffer class? You can use it like this, StringBuffer sb=new StringBuffer();     sb.append("SELECT COF_NAME,  ");     sb.append("SALES FROM COFFEES  ");     stmt.executeQ

String manipulation

2000-07-03 Thread brEezE
Hi all, I have a dummy question regaring a double-quoted string written in multiple line. Here is what I have been doing: stmt.executeQuery( "SELECT COF_NAME, " + "SALES FROM COFFEES " ); Is there a way to to eliminate the '+' sign by doing something like below? stmt.executeQu