Question: 1. Complete the following short program: * Determine if user entry contains a 'X' character. Print the left substring and right substring if it does
1. Complete the following short program: * Determine if user entry contains a 'X' character. Print the left substring and right substring if it does contain a 'l', and print "No / if it does not. */ import java.util.Scanner public class SubstringDemo [ public static void main(String[] args) final char SLASH System.out.print("Enter a word or phrase: Scanner in - new Scanner(System.in); String entry in.nextLine(); // finish the code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
