I got 2 strings. One contains the "format" and placeholders, while the other contains the actual value for the placeholders.
For example:
String one: "<username> <password>"
String two: "myUser myPass"
String one: "<name>, <familyName>"
String two: "John, Smith"
I'm trying to assign the variable String username
the value of the username placeholder in the second string, and the variable String password
the value of the password placeholder in the second string.
I know about the String.replaceAll()
method, but wouldn't that just replace the first string by the second?