L
lrantisi
Dear friends.
I have a chat program where a user has to enter his ID in a textfield
before he signs in to the chat.
The user might enter just a space, and sign in.
And he might enter two spaces, three or more. I want to truncate these
spaces from the name before using them.
How can I trunctae all the leading and trailing spaces.
Is there a function in Java that already does that for me.
Thanks
I have a chat program where a user has to enter his ID in a textfield
before he signs in to the chat.
The user might enter just a space, and sign in.
And he might enter two spaces, three or more. I want to truncate these
spaces from the name before using them.
How can I trunctae all the leading and trailing spaces.
Is there a function in Java that already does that for me.
Thanks