String formating | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

String formating

Is there any way to format output like C++ and C# in a simple way?

26th Sep 2016, 6:11 AM
Hassan Bagheri Valoujerdi
Hassan Bagheri Valoujerdi - avatar
1 Answer
+ 1
String x = "C++", y = "C#"; System.out.printf("Is there a way to format output like %s and %s in a simple way?", x, y); Output: Is there a way to format output like C++ and C# in a simple way?
7th Oct 2016, 2:03 PM
Christopher