Question: This assignment has 2 parts, the part I need help with is the 2nd part, which is on the third page. Use the information on
This assignment has 2 parts, the part I need help with is the 2nd part, which is on the third page. Use the information on all the pages to write a working code for the 2nd problem. llli une class which we have used, such as "charAt and "replace". You will also need to know how to input a string from your keyboard. You will n import java util scanner imports the class scanner from the library javauutil. Scanner input new Scanner (System.in) creates a new Scanner object, that is connected to standard input (the keyboard) String in scanner nextLine 1. temporarily suspends the execution of the program, waiting for input from the keyboard; 2. the input is accepted as soon as the user uses "Enter; 3. (a reference to) the string entered by te user (up to the first newline) is returned by the nextLine method; 4. (the reference to) the string is assigned to the variable inputstring. Thus something like this (try it out to see how it works): import ava. util. Scanner public class Keyboardinput public static void main (Stringti args) Scanner input new Scanner (System. in) String i utstring in t.next Line Systems out. Println (inputs tring)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
