Segregate class names using regular expresions

37 Views Asked by At

I have input like this and I need out put map like below. How can I do it.

Input

AccountDTO
UserDAO
TransferDTO
DepositDAO

Output

DAO
   UserDAO
   DepositDAO
DTO
   AccountDTO
   TransferDTO
   

DTO

0

There are 0 best solutions below