Stripping Characters in Java
- Jams44
-
Jams44
- Member since: Nov. 8, 2004
- Offline.
-
- Forum Stats
- Member
- Level 07
- Blank Slate
Quick Java question. So I am trying to compare two names. However, when the user inputs the name and accidentally puts a "space" at the end, the character literal will be recorded and thus won't equal the equivalent name without the "space". So I am wondering, is there some sort of strip function so I could remove all spaces? Thanks.
-Joe
- 0x41
-
0x41
- Member since: Dec. 30, 2004
- Offline.
-
- Forum Stats
- Member
- Level 10
- Blank Slate

