Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] String Trimming anyone???

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Strings are unmodifyable objects in Java.

By calling...

Ron DiFrango wrote:
>         val = val.trim();

... you set the local variable "val" to a new String reference.
(which does of course not alter any other references to the original
String).

Eric

- -- 
Eric Bodden
Chair I2 for Programming Languages and Program Analysis
RWTH Aachen University


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.0.2 (Build 2424)

iQA/AwUBQysqFcwiFCm7RlWCEQK0vQCfQHRgEvQtt4E85DUD20Fv5ob+JnkAoIOT
kIB9KEShMNMOAkyZTew9VspX
=Jfrh
-----END PGP SIGNATURE-----



Back to the top