11
My teacher taught the class to use the System.out.println("Mensagem")
this way for the class (the type of total_alunos
it doesn’t matter):
System.out.println("Existem ", total_alunos, " alunos na classe.");
After popping a few errors in the computers I said that it was necessary to concatenate the string through the +
, which worked, but she said the comma should work, too. At some point, was it possible to execute this function in the above manner? If yes, in which version of Java?
That’s exactly what happened @Math, thank you.
– Rafael Almeida