Sunday, 11 August 2013

Including function? [Java]

Including function? [Java]

Is there a function I can do something like this:
if (x.includes(y)) {
print z; }
and vice versa:
if (!x.includes(y)) {
print z; }
thanks.
I want to create a software application that forces specific restrictions
on the selection of a new password. The user will have to create a strong
password (such as including numbers, symbols, not in history for last 5
passwords) and a certain amount of mouse clicks, chosen by the user, in
order for the password to work when they either click ok or press enter.
One problem I'm having is, in my String "password" I'm having trouble
figuring out how to find out "if (password [does not have int a, etc.]) {
System.out("You need numbers in your password"); } is there a function
that I can use to find out if "String password" includes an Integer?

No comments:

Post a Comment