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
--- "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")) {};
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
> --- "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
--- "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")) {}
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
> --- "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
7 matches
Mail list logo