Question: in JAVA What I want is to determine the string between the period and the @ symbol and make it into a new string. For

in JAVA

What I want is to determine the string between the period and the "@" symbol and make it into a new string.

For example:

Input: 1.example@fakemail.com

Input: s.string410@fakemail.com

Results: example

Results: string410

I want this to work for any input. Please do not use anything super complex.

I would like to see this use .split(), substrings if possible/ variety of ways you may have.

If I have a comment please be able to respond.

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!