Top "User-input" questions

User Input is data that the user inputs into the program.

Password masking console application

I tried the following code... string pass = ""; Console.Write("Enter your password: "); ConsoleKeyInfo key; do { key = Console.ReadKey(true); // Backspace …

c# passwords console-application user-input masking
How to use View.OnTouchListener instead of onClick

I'm developing an Android 2.2.2 application for a client and he wants to do the following: Now I have a button …

android android-layout user-input
Why can't I enter a string in Scanner(System.in), when calling nextLine()-method?

How does this program actually work...? import java.util.Scanner; class string { public static void main(String a[]){ int a; …

java user-input java.util.scanner
How to get input from user at runtime

I want to take runtime input from user in Oracle 10g PL/SQL blocks (i.e. interactive communication with user). …

oracle oracle10g user-input
JOptionPane Input to int

I am trying to make a JOptionPane get an input and assign it to an int but I am getting …

java swing user-input int joptionpane
How do you implement a good profanity filter?

Many of us need to deal with user input, search queries, and situations where the input text can potentially contain …

php regex user-input
How to scanf only integer and repeat reading if the user enters non-numeric characters?

Here is some C code trying simply to prevent the user from typing a character or an integer less than 0 …

c validation user-input
Simulate user input in bash script

I am creating my own bash script, but I am stuck at the moment. Basically, the script would be used …

bash input emulation user-input
Simple InputBox function

I'm aware of a simple pop-up function for PowerShell, e.g.: function popUp($text,$title) { $a = new-object -comobject wscript.shell $…

function powershell user-input
Limiting Python input strings to certain characters and lengths

I just started learning my first real programming language, Python. I'd like to know how to constrain user input in …

python string limit user-input