String formating | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Resposta
+ 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