Thread
:
Basic Password Verifier
View Single Post
•
•
Join Date: Dec 2007
Posts: 1,525
Reputation:
Solved Threads: 209
javaAddict
Offline
Posting Virtuoso
Re: Basic Password Verifier
0
#
4
Nov 18th, 2008
I think you have misplaced the parenthesis:
This:
if (!Character(userPass.charAt
(index == 'c')
))
Should be:
if (!Character(userPass.charAt
(index)
== 'c'))
You could also try:
Help with Code Tags
Java Syntax
(
Toggle Plain Text
)
goodSoFar = userPass.
equals
(
"cool"
)
;
return
goodSoFar;
goodSoFar = userPass.equals("cool"); return goodSoFar;
Check out my
New Bike
at my
Public Profile
at the "About Me" tab
javaAddict
View Public Profile
Find all posts by javaAddict