Question: in java challenge activity 5 . 1 7 . 1 : Character operations. 5 9 9 1 1 4 . 3 9 6 0 9

in java
challenge activity
5.17.1: Character operations.
599114.3960992.qx3zqy7
Jump to level 1
Variable inputString is assigned with a 3-character string read from input. If inputString's first and third characters are both alphabetic characters, output "Good string". Otherwise, output "Bad string". End each output with a newline.
Ex 1: If the input is g.b, then the output is:
Good string
Ex 2: If the input is m&6, then the output is:
Bad string
1
2
3
4
5
6
7
8
9
10
11
12
13
import java.util.Scanner;
public class StringModification {
public static void main(String[] args){
Scanner scnr = new Scanner(System.in);
String inputString;
inputString = scnr.nextLine();
/* Your code goes here */
}
}

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 Programming Questions!