Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java Micro Edition
Search Coderanch
Advance search
Google search
Register / Login
This week's giveaway is in the
Testing
forum.
We're giving away four copies of
TDD for a Shopping Website LiveProject
and have Steven Solomon on-line!
See
this thread
for details.
Win a copy of
TDD for a Shopping Website LiveProject
this week in the
Testing
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Paul Clapham
Ron McLeod
Jeanne Boyarsky
Tim Cooke
Sheriffs:
Liutauras Vilda
paul wheaton
Henry Wong
Saloon Keepers:
Tim Moores
Tim Holloway
Stephan van Hulst
Carey Brown
Frits Walraven
Bartenders:
Piet Souris
Himai Minh
Forum:
Java Micro Edition
limit login attempts
dan sidebottom
Greenhorn
Posts: 1
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hi how do i change this code to limit user attempts to 3?
public void validateUser(
String
name, String password) {
if (name.equals("admin") && password.equals("letmein")) {
display.setCurrent(list1);
} else {
tryAgain();
}
}
public void tryAgain() {
Alert error = new Alert("Login Incorrect", "Please try again", null, AlertType.ERROR);
Many thanks
Tim Holloway
Saloon Keeper
Posts: 25455
178
I like...
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Welcome to the JavaRanch, Dan.
Question #1: Is this supposed to have anything at all to do with
Java
Mobile Edition?
Question #2: What sort of system is this code supposed to be part of? Is it web-based? An
applet
?
Servlet
? Stand-alone application?
Sometimes the only way things ever got fixed is because people became uncomfortable.
Stop it! You're embarassing me! And you are embarrassing this tiny ad!
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
I have 3 midlets but code to be displayed should be in first midlet .
Initializing
young HACKER's training: pass gen :)))
For loop not executing
More...