Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: simple log in java program

  1. #1
    Junior Member
    Join Date
    Sep 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default simple log in java program

    im in java programing 1 and anyone can help me with this

    "make a sample log-in program which prompts if a user is a legitimate member or not. the existing users and thier corresponding passwords are as follows

    Account name: jeff kenneth pucan / username: jeff / passwords: kent or felix
    Account name: laila fortu / username:LAI / password: forio
    Account name: dexter cruz / username: Dex / passwords: fort or light

    Display "Welcome <Account name>" if the user enter a correct username and password. display "log-in failed" if otherwise.


  2. #2
    Forum Squatter newbie's Avatar
    Join Date
    Nov 2010
    Location
    North Wales
    Posts
    661
    My Mood
    Stressed
    Thanks
    28
    Thanked 115 Times in 106 Posts
    Blog Entries
    1

    Default Re: simple log in java program

    We're not a homework service and nobody here is going to complete this for you.
    You need to start the program and tell us where you get stuck, and giving us detailed information about the problem and any errors thrown.

    A basic outline for the program would be as follows:
    • Store details in a container of your choice
    • Ask user to enter username and password using the Scanner class
    • Loop through the container and check user inputs against the valid inputs
    • If match if found: login, else: print error.



    Come back when you've started it.
    Please use [highlight=Java]//code goes here...[/highlight] tags when posting your code

Similar Threads

  1. ::: Write a Simple Java Program :::
    By riyaju in forum Object Oriented Programming
    Replies: 3
    Last Post: July 27th, 2012, 09:04 AM
  2. Simple Java Program - hasTeen [HELP]
    By HeroFlame in forum What's Wrong With My Code?
    Replies: 6
    Last Post: October 24th, 2011, 09:16 AM
  3. Simple Java Program
    By Robbiep in forum What's Wrong With My Code?
    Replies: 6
    Last Post: October 24th, 2011, 07:27 AM
  4. PLEASE HELP!!!! simple java program...
    By parvez07 in forum Object Oriented Programming
    Replies: 5
    Last Post: August 26th, 2009, 06:38 AM
  5. help with simple java program
    By parvez07 in forum Java Theory & Questions
    Replies: 4
    Last Post: August 25th, 2009, 07:19 AM