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: Password Inputs

  1. #1
    Junior Member
    Join Date
    Jul 2013
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Password Inputs

    Is there a way to mask the characters being entered by the user with asterisks? (using a CLI in an IDE)


  2. #2
    Junior Member
    Join Date
    Jul 2013
    Location
    kolkata
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Password Inputs

    Console cc=System.console();
    char []str=cc.readPassword();

Similar Threads

  1. Can't get inputs to add up. Need help fast!!
    By Rick Sebastian in forum What's Wrong With My Code?
    Replies: 11
    Last Post: February 3rd, 2013, 02:20 PM
  2. [SOLVED] Scanner Requiring Two Inputs
    By Nate in forum What's Wrong With My Code?
    Replies: 6
    Last Post: July 17th, 2012, 05:46 PM
  3. Concatenating Inputs, need help please!
    By xdrechsler in forum File I/O & Other I/O Streams
    Replies: 17
    Last Post: August 19th, 2011, 01:02 PM
  4. How to store 10 inputs in an arraylist?
    By Bray92 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: March 20th, 2011, 10:22 PM
  5. Inputs not being applied.
    By Norflok669 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 15th, 2010, 01:25 AM