I have a String named firstName. This string has a value of "Matt". I then have a second String named lastName with a value of "getLastName()". Both of these String are stored in a database and I'm attempting to build a line of code dynamically. The line of code needs to say:
firstName + getLastName();
Is there a way to get java to read the value of lastName (which is getLastName()) as a method instead of as a value of a string?