Question: A course ID is a string that has the following format: it starts with two letters followed by the dash (-) and any number of
A course ID is a string that has the following format: it starts with two letters followed by the dash (-) and any number of digits, e.g. CS-230, MA-1220, CH12. Write a program that reads in a course ID from the user and prints out the number part of the ID separately.
(JAVA)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
