Answers for "string format"

14

formartted string java

String str = String.format( "Hello \n World \n my name is %s and i'm %d years old" , "Paul", 27);
Posted by: Guest on March-08-2020
7

c# string formatting

name = "Bob";
age = 27;
info = $"Your name is {name} and you are {age} years old";
Posted by: Guest on May-20-2020
0

string format

fun Double.format(digits: Int) = "%.${digits}f".format(this)
Posted by: Guest on May-17-2021

Browse Popular Code Answers by Language