validating strings

I have the folowing strings in a program i have created. This is to be put into a command line application

StringName;

StringHousNum;

StringStreet;

StringTown;

StringPostcode;

Anyone know how to validate strings so for example for the string name you can only have letters allowed and it has to be at least one character

[363 byte] By [jonathanca] at [2007-11-26 21:35:34]
# 1
Have a look at the methods in classes String and (static methods in) Character.
OleVVa at 2007-7-10 3:16:09 > top of Java-index,Java Essentials,Java Programming...
# 2
cheers m8
jonathanca at 2007-7-10 3:16:09 > top of Java-index,Java Essentials,Java Programming...
# 3
apparently u can use a stringvalidator but cant fully understand how you would implement this into code any ideas
jonathanca at 2007-7-10 3:16:09 > top of Java-index,Java Essentials,Java Programming...