It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Java Forum

set minimum character value on strings

set minimum character value on strings

Postby mobfesk2 on Sat Oct 28, 2006 4:15 pm

Hi there,

I'm trying to set a minimum chracter value on a string in which I'd like a string to have at least 3 characters. I have thought of the following mutator method:

public void setRefNumber (String ref)
{
refNumber = ref;
}

Does anyone know how I can have at least 3 characters in a string?

Any help or suggestions would be much appreciated.

Thank you in advance
mobfesk2
 
Posts: 0
Joined: Sat Oct 28, 2006 4:08 pm

Who is online

Users browsing this forum: No registered users and 0 guests