In this article, we will see how to use format method of String in Java.
Lets look to our code.
String.Format(".... %s","andromeda");
Lets see it in an example.
In above example, we used arg parameter in a string and print it to terminal. Output indicates that string as arg is replaced within our string .