Results 1 to 4 of 4
- 11-22-2010, 10:47 AM #1
Member
- Join Date
- Nov 2010
- Location
- Beirut, Lebanon
- Posts
- 36
- Rep Power
- 0
simple question. thanks in advance fro your help
im writing a password check program in java now i sorted out that i need at least 6 letters and maximum 15, and at least a letter and a digit but i need to sort out the rule "not to end the password with '99'.
it says it cannot be a series of alphabetical characters ending with '99' so i started with if it is all characters and want to check the last two and wrote this:
if (var == true) //all letters
{
if (Character.isDigit(S.charAt(S.length()-2)) && Character.isDigit(S.charAt(S.length()-1))) //last two digits
{
}
}
}
how do i check if the last two digits are 99?
thanks in advance for your help
- 11-22-2010, 10:48 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,408
- Blog Entries
- 7
- Rep Power
- 17
Don't double post; I already answered your question in your other thread.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 11-22-2010, 10:51 AM #3
Member
- Join Date
- Nov 2010
- Location
- Beirut, Lebanon
- Posts
- 36
- Rep Power
- 0
i replied in the other thread that i cannot use the method you supplied.
and i guess this question is for advanced so i posted it here.
thanks
- 11-22-2010, 10:58 AM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,408
- Blog Entries
- 7
- Rep Power
- 17
When people rob a bank they get a penalty; when banks rob people they get a bonus.
Similar Threads
-
question. thanks in advance for your help
By farahm in forum New To JavaReplies: 4Last Post: 11-22-2010, 11:25 AM -
small problem, thanks in advance for your help
By farahm in forum New To JavaReplies: 4Last Post: 11-22-2010, 09:26 AM -
How to advance ?
By House in forum New To JavaReplies: 14Last Post: 08-29-2010, 03:29 AM -
Advice for Advance projects?
By suyash89 in forum Advanced JavaReplies: 7Last Post: 01-02-2010, 10:51 PM -
Probably a really simple question...
By ibanez270dx in forum New To JavaReplies: 0Last Post: 11-16-2007, 01:27 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks