Problem

There is a rumor circulating on the Internet that George Lucas (the creator of the Star...

There is a rumor circulating on the Internet that George Lucas (the creator of the Star Wars movies) uses a formula to create the names for the characters in his stories (Jar Jar Binks, ObiWan Kenobi, etc.). The formula—allegedly—is this:

Your Star Wars first name:

1 Take the first three letters of your last name.

2 Add to that the first two letters of your first name.

Your Star Wars last name:

1 Take the first two letters of your mother’s maiden name.

2 Add to this the first three letters of the name of the town or city where you were born.

And now your task: Create a new BlueJ project named star-wars. In it create a class named NameGenerator. This class should have a method named generateStarWarsName that generates a Star Wars name, following the method described above. You will need to find out about a method of the String class that generates a substring.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT