Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class YouEntered {
- public static void main(String[] args) {
- Scanner obj = new Scanner(System.in);
- System.out.println("Enter a something: ");
- String something = obj.nextLine();
- System.out.println("You entered: "+something);
- }
- }
- Enter something:
- Stackoverflow
- You entered: Stackoverflow
- Enter something: Stackoverflow
- You entered: Stackoverflow
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement