Advertisement
jbn6972

simpleio

Nov 9th, 2021
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. import java.util.*;
  2. public class simpleio{
  3.     public static void main(String args[]){
  4.         Scanner scan = new Scanner(System.in);
  5.         String msg;
  6.         System.out.println("Enter a String");
  7.         msg = scan.nextLine();
  8.         System.out.println("Your message is :: "+msg);
  9.         scan.close();
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement