hi i have to verify a string entered, the first 5 letters of the string must be bongo and the next 3 characters are numbers which must be between 2 and 9 for example bongo 343, it is part of a an airline booking system which i will produce the code for if it will make it easier for you to help me.
thanx for your time

why will you only build the system if you make it easier for us to help you?

As to the String validation, check out the regular expression package in Java 1.4 and later.
It's purpose built for things like that and extremely powerful.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.