Question: What would the code for this in java be? the goal is: public String domainGen (String fullname) This method takes the fullname and generated the

What would the code for this in java be?

the goal is:

public String domainGen (String fullname)

This method takes the fullname and generated the domain in following scheme www.firstname-lastname.com *Make sure to lowercase the domain

To fill in:

class StringMethods {

public String domainGen (String text) { //Write your Code here (replace the default return statement) return ""; }

}

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!