Reputation: 855
String.format("com.dummy.%1$s.", strVarName)
Upvotes: 0
Views: 45
Reputation: 44706
See the documentation on Formatter available here.
Formatter
Upvotes: 4