Question: Java program Write a method that prompts for a String. If the String is green (any casing), print GO, if the String is yellow, print
Java program
Write a method that prompts for a String. If the String is "green" (any casing), print GO, if the String is "yellow", print SLOW, otherwise, print STOP.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
