Question: Goal: Learn to get substrings. Assignment: In a system designed for a digital library archive, each document is tagged with a unique identifier. The identifier
Goal: Learn to get substrings.
Assignment: In a system designed for a digital library archive, each document is tagged with a unique identifier. The identifier is split into three parts, each separated by a : character. The middle code represents the type of the document. The three parts are always three characters long each. The resulting document id is always characters long.
Given a String variable documentId, declare the string variable typeId, and initialize it to the middle part of the document id
For example, if documentId were ABC::XYz then typeId would be
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
