Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java read string input

import java.util.Scanner;
 
public class YourClass {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String inputString = scanner.nextLine();
        System.out.println("Your string: " + inputString);
    }
}
Source by www.tutorialkart.com #
 
PREVIOUS NEXT
Tagged: #java #read #string #input
ADD COMMENT
Topic
Name
5+8 =