i have a question and as its hard to explain i will try using an example
lets say you are writing a program that checks a users password against a specified password format. ex. letter followed by number followed by number followed by special char. etc. how do you find out if the nth place in a string is of a certain type? or how do u compare two strings saying does string a have a letter to begin then a number then etc.
go here: http://www.leepoint.net/notes-java/index.html
Then find the proper coding for substrings (yeah, that whole deal) So the hard way (the only way I can think of) is using the substrings and incorporating it into a series of if/else statements in order to check that each and every place of the string is the proper type (int/char) otherwise throw an exception. Thats the only thing I can think of and I could be wrong, but I would try that first