How To Print Message In Scala

[Solved] How To Print Message In Scala | Scala - Code Explorer | yomemimo.com
Question : how to print message in scala

Answered by : asif-iqbal-paracha

// Scala program of print
// functions
// Creating an object
object GfG
{ // Main method def main(args: Array[String]) { // Applying console with println Console.println("GeeksfoGeeks") // Displays output with no // trailing lines print("CS") print("_portal") // Used for a newline println() // Displays format string printf("Age = %d", 24) }
}
//Output:
//GeeksfoGeeks
//CS_portal
//Age = 24

Source : | Last Update : Tue, 08 Mar 22

Answers related to how to print message in scala

Code Explorer Popular Question For Scala