Do u know how to prompt user to enter password and validate the password?

hi all,anyone knows how to prompt user to enter password and validate the password as well?I do not need the GUI.Can someone post the codes here?Thanks!

hi all,anyone knows how to prompt user to enter
password and validate the password as well?I do not
need the GUI.Can someone post the codes here?Thanks!Codes are
BufferedReader
System.in
if
else
System.out.

Similar Messages

  • How to prompt user to enter City & print out the Country it belongs to?

    I have one table with “country“ column and “city” column. I need to prompt the user to enter the city name. Then the program should print which country it belongs to. As an example, if user enters “Paris”, program should recognize that it’s in “France” and it should print it out as follows:
    Paris ------------------France
    Here’s my code:
    ACCEPT p_1 PROMPT 'Please enter the city name:'
    DECLARE
      v_parent_name ccname.parent_name%TYPE:= '&p_1';
      v_child_name ccname.child_name%TYPE  := '&p_1';
      CURSOR reg_cur
      IS
        SELECT child_name, parent_name INTO v_child_name, v_parent_name FROM ccname;
    BEGIN
      FOR reg_rec IN reg_cur
      LOOP
        DBMS_OUTPUT.PUT_LINE(UPPER(RPAD(v_child_name, 15)) || '      ' || UPPER(RPAD(v_parent_name, 15)));
        FETCH reg_cur INTO v_child_name, v_parent_name;
      END LOOP;
    END;Any ideas on how I can implement that?
    Thank you in advance,
    Lisa.
    Edited by: user13675672 on Feb 1, 2011 10:15 PM

    Hi,
    Do you want people to help you? Then try to help them. Post a little sample data (CREATE TABLE and INSERT statements), some parameters you might want to pass, and the results you would want from that sample data for each of the parameters.
    If you can use commonly available tables, such as those in the scott or hr schemas, to show your problem, then you don't have to post any sample data; just the parameters (if any) and results.
    For example, your problem is:
    "I have a table with city and country columns. I want to input a city, and display the country from that same row." That's a lot like:
    "The scott.emp table has ename and job columns. I want to input an ename and display the job from that same row."
    So, given the name SCOTT, you would want this output:
    ENAME      JOB
    SCOTT      ANALYSTor, given MILLER you would want:
    ENAME      JOB
    MILLER     CLERKHere's one way to do that in SQL*Plus:
    ACCEPT p_ename PROMPT 'Please enter the employee name: '
    SELECT     ename
    ,     job
    FROM     scott.emp
    WHERE     ename     = '&p_ename'
    ;Don't use a meaningless name, like p_1, when you can use a helpful name, like p_ename.
    As Billy pointed out, PL/SQL wasn't designed for user interaction like this. There's no point in trying to use PL/SQL to do it.
    I hope that answers your question.
    If not, please help me understand, so I can do a better job next time. Don't just say "This doesn't work", or "This is not what I'm trying to get", or "Any other ideas?". Those things don't help anyone understand anything. Point out where the suggested soloution is not working, explain what you are trying to get, and give specific examples.

  • HT1430 how do you unlock an IPod touch and reset the password

    My daughter has reset her password and now cant remeber it! can anyone tell me in simple terms how to reset please?
    Thanks

    Connect the iOS device to your computer and restore via iTunes. Place the iOS device in Recovery Mode if necessary to allow the restore.
    If recovery mode does not work try DFU mode.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • How to restrict users to download, copy and print the documents from document library

    I want in SharePoint documents which I uploaded in documents library. no user will be able to download, copy and print.
    How it can be possible these types of restrictions apply?

    You can't achieve this goal by just setting appropriate access rights on SharePoint. You need to setup and configure Information Rights Management: https://support.office.com/en-in/article/Apply-Information-Rights-Management-to-a-list-or-library-6714cfe3-ef39-43b0-bb65-a887726bb63c

  • HT201274 I forgot my unlock password and i need to know how i can get into my ipod without having the password ( THIS REALLY IS MY IPOD, NOT A STOLEN ONE THAT SOMEONE WANTS TO GET INTO!!! )

    HELPPPPPP!!!!!!!!!!! PLEASE!

    What to Do If You've Forgotten Your iPhone's Passcode
    Restoring iPod touch after forgotten passcode
    iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen

  • How row migration get eliminated by export and import the table.

    Hi ,
    Please let me know,how row migration get eliminated by export and import the table.
    Another method,deleting migrated rows and inserting those rows from copied table,
    i think the concept behind this method is,inserting these rows into new block.
    pls correct me if i am wrong.
    Thanks,
    Kumar.

    Hi!
    You can also use ALTER TABLE MOVE command, or if you are on 9i you can use DBMS_REDEFINITION package.
    If you have a maintainance window the easiest way would be to use alter table move.
    Regards,
    PP

  • How to force the user to enter a value in the prompt

    Is there a way to force the user to enter a value in the prompt before they run the report?
    We have a customer specific dashbaord. The user has to enter a customer number in Dashbaord prompt on a first page of the dashboard. We store that value in a presentation variable. That presenatation variable value is being referenced in all the other pages of the dashabord. If the user does not enter a values in the first page and directly navigates to the other pages on the dashbaord, the reports on the other pages start to run for all the customers. Is there a way to force the customer to enter a value in the prompt before running any of the reports on the dashboard?
    Thanks!

    by Answer prompts, do you mean Column prompt?
    I can not use Column prompt in this senario as the user should not have to enter the same customer number over and over again when he navigates from one page to another on the same dashboards. If there is a way to default the column prompts then this would be an acceptable solution.
    I have already defaulted the prompt to a value as suggested in hte blog, but the issues occurs when the user erases the defaulted value. Is there are way to set the default value within the report?
    Can you please explaing mroe about option 3 regarding Java Script. Also please let me know what other options there are so that I can check whether they will fit my needs.
    Thank you very much!

  • Hi all...  My user ID is Keychain Access won't allow me to access my information in my Keychain.  I can't seem to fix it.  What do I need to do?  I don't really know how to explain it but I can access all the other keychains just not my user account

    Hi all...
    My user ID is Keychain Access won't allow me to access my information in my Keychain.  I can't seem to fix it.  What do I need to do?  I don't really know how to explain it but I can access all the other keychains just not my user account keychain.  Can this be fixed?
    Thanks!

    That is correct...  I know the Admin password but the password for my keychain is not correct and I can't seem to remember what the last password would have been.  Any ideas how to reset it?  Maybe delete and recreate?  I know I may lose some info.  Thanks!

  • My macbook keeps asking me to use an administrator and their password to continue but nobody seems to know who is the administrator for this computer...does anyone know how to avoid this this or figure out who the administrator is?

    My macbook keeps asking me to use an administrator and their password to continue but nobody seems to know who is the administrator for this computer...does anyone know how to avoid this this or figure out who the administrator is?

    Lynne130,
    to figure out which users have administrative privileges, open the Users & Groups pane of System Preferences; each user other than the Guest User will be shown with a description of either “Admin” or “Standard”. It’s typical for the first user created on a Mac to be an administrative user.

  • How to force users to enter their ID and password ?

    I am considering installing AirPort Extreme at our office. We don't want guests connecting to our network. is there any option/software that will force the guest to enter an ID and password to connect to our network ? This is similar to what happens at the hotels when we try to connect to hotel's network.

    How to force users to enter their ID and password?
    is there any option/software that will force the guest to enter an ID and password to connect to our network ? This is similar to what happens at the hotels when we try to connect to hotel's network.
    The AirPort Extreme does not have the features necessary to create a "splash page" that provides basic information about the company and asks users for their identity and password....like you see at most hotels.
    Basically, with an AirPort Extreme, users would have to scan to look for the name of the wireless network to join, and then enter the password to connect.
    The best that you might be able to achieve with the AirPort Extreme is create a "hidden" network, which would require that users know both the name of the wireless network and password to connect.  However, based on experience, this might be more of a hassle than anything else.
    The bottom line.....Apple really designed the AirPort routers for home use, so that might be the best place for them in most cases.

  • Somebody knows how to get rid of OS Maverick and revert to mountain  Lion

    somebody knows how to get rid of OS Maverick and revert to mountain  Lion

    Check out this user tip >  How to revert OS X back from Mavericks: Apple Support Communities

  • HT204053 Dear Support Team, every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud???

    Dear Support Team,
    Every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud?
    Thanks

    It is not possible to create a new iCloud account using a Windows machine. You must create the account using a Mac (10.7.5 or more) or an IOS device (iPhone etc). Once that is done you can sign into and use the account on your Windows machine.

  • Does anyone know how to connect an older 20" cinema display with the (ADC) adapter end and connect it to a MacBook Pro 17" 2008 model (DVI) ?????

    Does anyone know how to connect an older 20" cinema display with the (ADC) adapter end and connect it to a MacBook Pro 17" 2008 model (DVI) ?????

    I believe you naeed the Apple ADC to DVI adapter.

  • I have an iPad 2 and so does my mom.  We both have the app Slotomania and now all of sudden after having it for months, our games connected and we don't know how to fix it.  Deleting it and reinstalling does not work.

    I have an iPad 2 and so does my mom.  We both have the app Slotomania and now all of sudden after having it for months, our games connected and we don't know how to fix it.  Deleting it and reinstalling does not work.

    Does the app now use iCloud, do you use iCloud and do the two of you use the same account on iCloud?
    Just a guess.

  • I lost my Iphone 3GS. My brother has given me his Iphone 4 now. We both use the same notebook to update and sync our phones. I would like to know how can i reconnect back to my account using the Iphone which was previous used by my brother.

    I lost my Iphone 3GS. My brother has given me his Iphone 4 now. We both use the same notebook to update and sync our phones. I would like to know how can i reconnect back to my account using the Iphone which was previous used by my brother.

    If you are saying that you both have iCloud accounts and use the same icloud ID, then yes, the contacts will be deleted.  The idea is that all devices using the same icloud ID are kept in sync.  You need to use different IDs.  You can keep the same iTunes ID so you can share the songs and apps.  But use different icloud IDs.

Maybe you are looking for