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

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