Answer:
public static String ufnFullName(String Fname, String Lname){
String FullName = Fname+" "+Lname;
return FullName;
}
Explanation:
Using Java programming language, the function is created to accept two String parameters (Fname and Lname)
These are concatenated into a new String FullName and returned by the function
See below a complete code that prompts users to enter value for first and last names then calls this method to display the full name
<em>import java.util.Scanner;</em>
<em>public class FullName {</em>
<em> public static void main(String[] args) {</em>
<em> System.out.println("Enter First Name");</em>
<em> Scanner in = new Scanner(System.in);</em>
<em> String Fname = in.next();</em>
<em> System.out.println("Enter Last Name");</em>
<em> String Lname = in.next();</em>
<em />
<em> System.out.println("Your Full Name is "+ufnFullName(Fname,Lname));</em>
<em> }</em>
<em> public static String ufnFullName(String Fname, String Lname){</em>
<em> String FullName = Fname+" "+Lname;</em>
<em> return FullName;</em>
<em> }</em>
<em>}</em>