51 Java Create New Class Called Starwarsnamegenerator Write Method Called Getstarwarsname Q37045098

5.1 Java.  Create a new class calledStarWarsNameGenerator.

Write a method called getStarWarsName that determines yourStar Wars name.

  • It will have 4 parameters, your first name, last name, mothersmaiden name, and the town you were born.
  • The method will return one String object, your Star Warsname.
  • Your Star Wars name is created as per the instructions in bluebelow:

Your Star Wars First Name:
1. Take the first 3 letters of your last name.
2. Add to that, the first 2 letters of your first name.

Your Star Wars Last Name:
1. Take the first 2 letters of your mother’s maiden name.
2. Add the first 3 letters of the name of the

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.