Question: A user types a word https://gyazo.com/457d6ae13ca33d1a767f1c090c3fa8c8 I can't figure out how to get the System to read what the user outputs. A user types a

A user types a word

A user types a word https://gyazo.com/457d6ae13ca33d1a767f1c090c3fa8c8 I can't figure out how to https://gyazo.com/457d6ae13ca33d1a767f1c090c3fa8c8

I can't figure out how to get the System to read what the user outputs.

A user types a word and a number on a single line. Read them into the provided variables. Then print: word_number. End with newline. Example output if user entered: Amy 5 Amy_5 1 import java.util.Scanner 1 test 3 public class SpaceReplace { 4 public static void main (String [] args) { passed Scanner scnr new Scanner(System.in); String userword = ""; int userNum = 0; 6 All tests passed 8 userWord = scnr.next(); 9 System.out.print (userWord "_"); 10 12 13 14 System.out.println(userNum); 15 16 17 18 19 /*Your solution goes here/ return; Run Testing with: Amy 5 Your output Amy_0 Expected output Amy5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!