Hi all, For the life of me I can't find a way to do this. Forgive my ignorance. Here is my question:
I need a way to replace a ? or many ?'s in a string with a value. How can I accomplish this?
in MFC you could do
resultCString = someCString.format("you can't enter %s for %s", "value1", "value2");
and you would get
resultCString = "you can't enter value1 for value2"
Is there a way to do this in java?
Thanks in advance
Brian
Spend like you don't need the money,
love like you've never been hurt and dance like nobody's watching!
I need a way to replace a ? or many ?'s in a string with a value. How can I accomplish this?
in MFC you could do
resultCString = someCString.format("you can't enter %s for %s", "value1", "value2");
and you would get
resultCString = "you can't enter value1 for value2"
Is there a way to do this in java?
Thanks in advance
Brian
Spend like you don't need the money,
love like you've never been hurt and dance like nobody's watching!