Advertisement
KodingKid

Java input - Basic Scripting #20

May 26th, 2021
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.34 KB | None | 0 0
  1. import java.util.Scanner;
  2. class Input {
  3.     public static void main(String[] args) {
  4.         Scanner inputobject = new Scanner(System.in);
  5.         System.out.println("Hello, this script allows input, so please, try to input something!");
  6.         String inputoutput = inputobject.nextLine();
  7.         System.out.println(+ inputoutput);
  8.     }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement