Please enable JavaScript to use CodeHS

CodeHS Glossary


readLine Java

Java method that lets us read in a line of input from the user as a String. For example in this program: ``` String input = readLine("Enter your name: "); System.out.println("Your name is: " + input); ``` If the user types in "Karel", the output will be: ``` Your name is Karel ```