Respuesta :

ijeggs

Answer:

public class num1 {

   public static String helloName(String name){

       return  "Hello "+name+"!";

   }

   public static void main(String[] args) {

       System.out.println(helloName("Alice"));

   }

}

Explanation:

Java programming language has been used for this task.

Start by defining a method that returns a String the method's name is helloName(name); Which receives a String parameter

In the method's body return the String name which is passed as an argument with the the word "Hello" concatenated.

Call The method in the main method passing any name as an argument

Answer:

Hello bob

Explanation: