import java.util.Scanner; String s; Scanner reader=new Scanner(System.in); System.out.println("input string: "); s=reader.nextLine();