Not signed in (Sign In)

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthoradmin
    • CommentTimeJan 16th 2008
     
    Use this forum to discuss questions related to Project 1
    • CommentAuthorkdtaylor
    • CommentTimeJan 22nd 2008
     
    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.

    any help is appreciated.
    Kevin
  1.  
    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