Hello, I need help on creating a Star Wars name generator using specific instructions. : I'm struggling with a specific method which takes in a String parameter. The promptString method will print its parameter to the user as a prompt, and then return a String that is the result of reading the console via the nextLine() method. For this program you will use nextLine() exclusively. I've prompted  the user with a question using a parameter, and then used nextLine to read the string but after that im a bit lost how can i get the method to print to the console, i seem to only be able to return which only stores the string.

  

    import java.util.*;
    public class StarWarsName{
       public static void main(String[]args){
          promptString("Enter your first name: ");
       }
       public static String promptString(String n){
          Scanner console = new Scanner(System.in);
          String first = console.nextline();
          return first.trim();
       }
    }