Simple Input- String
Problem Statement
Given a string S, your task is to take input of the given string and print the same string.
import java.io.*; // for handling input/output
import java.util.*; // contains Collections framework
class Main {
public static void main (String[] args) {
String S;
Scanner sc=new Scanner(System.in);
S=sc.nextLine();
System.out.println(S);
}
}