"some text".equals(someString)

2002-01-29 Thread E.L. Willighagen
Hi all, can anyone tell me the difference (performance etc) between: 1. String someString = "text" if ("some text".equals(someString)) {}; and 2. String someString = "text" if (someString.equals("some text")) {}; regards, Egon

Re: "some text".equals(someString)

2002-01-29 Thread Francois BOTTIN
--- "E.L. Willighagen" <[EMAIL PROTECTED]> wrote: > > Hi all, > > can anyone tell me the difference (performance etc) between: > > 1. String someString = "text" >if ("some text".equals(someString)) {}; > > and > > 2. String someString = "text" >if (someString.equals("some text")) {};

Re: "some text".equals(someString)

2002-01-29 Thread Arnaud Vandyck
Francois BOTTIN <[EMAIL PROTECTED]> wrote: > --- "E.L. Willighagen" <[EMAIL PROTECTED]> wrote: > > > > Hi all, > > > > can anyone tell me the difference (performance etc) between: > > > > 1. String someString = "text" > >if ("some text".equals(someString)) {}; > > > > and > > > > 2. Str

Re: "some text".equals(someString)

2002-01-29 Thread Rick Lutowski
> --- "E.L. Willighagen" <[EMAIL PROTECTED]> wrote: > > > > Hi all, > > > > can anyone tell me the difference (performance etc) between: > > > > 1. String someString = "text" > >if ("some text".equals(someString)) {}; > > > > and > > > > 2. String someString = "text" > >if (someString.equ

Re: "some text".equals(someString)

2002-01-29 Thread Francois BOTTIN
--- "E.L. Willighagen" <[EMAIL PROTECTED]> wrote: > > Hi all, > > can anyone tell me the difference (performance etc) between: > > 1. String someString = "text" >if ("some text".equals(someString)) {}; > > and > > 2. String someString = "text" >if (someString.equals("some text")) {}

Re: "some text".equals(someString)

2002-01-29 Thread Arnaud Vandyck
Francois BOTTIN <[EMAIL PROTECTED]> wrote: > --- "E.L. Willighagen" <[EMAIL PROTECTED]> wrote: > > > > Hi all, > > > > can anyone tell me the difference (performance etc) between: > > > > 1. String someString = "text" > >if ("some text".equals(someString)) {}; > > > > and > > > > 2. St

Re: "some text".equals(someString)

2002-01-29 Thread Rick Lutowski
> --- "E.L. Willighagen" <[EMAIL PROTECTED]> wrote: > > > > Hi all, > > > > can anyone tell me the difference (performance etc) between: > > > > 1. String someString = "text" > >if ("some text".equals(someString)) {}; > > > > and > > > > 2. String someString = "text" > >if (someString.eq