So I am fairly new at using Java. But here is the issue I need help with.
I am currently at run time storing a value of a "First Name" field Then storing a value of the "Last Name" field.
I need to make those two value to be stored as a single variable example "James Willard" Note must have a space between the two values.
I need this put together like this to insert into a single Signature box. Currently I have two methods one for each value. Is there a way to put this into one method?
Below is my current methods I have. Any help would be greatly appreciated.
//Method to Capture First Name for Signature block on Review and Sign
Page
public String getFirstName() {
String FName= FirstName.getAttribute("value");
System.out.println("FirstName in method"+FName);
return FName;
}
//Method to Capture Last Name for Signature block on Review and Sign
Page
public String getLastName() {
String LName= LastName.getAttribute("value");
System.out.println("LastName in method"+LName);
return LName;
}