You can accept input like this:


import java.util.Scanner;

public class Testt
{
public static void main(String[] args)
{
String input;