Write a java program that satisfies the given requirement -


Question: Please write the subsequent program

Program Speciation:

Write a Java program that satisfies the given requirement:

Prompts the user to input exactly nine characters, which constitute a valid lock combination.

Gets whatever the user enters and stores it into a String variable, using the the Scanner's .nextLine() method.

Determines if the input string is a valid lock combination - under the given rules:

Part 1: Consists of exactly nine characters.

Part 2: The character at subscripts 2 and 8 must be 'R' - to indicate turning the dial to the right.

Part 3: The character at subscript 5 must be 'L' - to indicate turning the dial to the left.

Part 4: All other character must be one of the digits: '0', through '9' - indicating what number to turn the dial to.

Can someone show me how to write a proper code for this program and how to do it. Thanks

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a java program that satisfies the given requirement -
Reference No:- TGS0957745

Expected delivery within 24 Hours