Logo

Programming-Idioms

Print a literal string on standard output
Implementation
Scala

Implementation edit is for fixing errors and enhancing with metadata. Please do not replace the code below with a different implementation.

Instead of changing the code of the snippet, consider creating another Scala implementation.

Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating material.

Please try to avoid dependencies to third-party libraries and frameworks.

Other implementations
System.out.println("Hello World");
print("Hello World")
echo "Hello World" . PHP_EOL;
import "fmt" 
fmt.Println("Hello World")
document.write("Hello World!");
#include <stdio.h>
printf("Hello World\n");
using System;
Console.WriteLine("Hello, World!");
puts 'Hello World'
#include <iostream>
std::cout << "Hello World" << std::endl;
println!("Hello World");
with Ada.Text_IO;
use Ada.Text_IO;
Put_Line ("Hello World!");
print_endline "Hello World!"
(println "Hello World")
import std.stdio;
writeln("Hello world!");
print("Hello World");
io:format("~s~n", ["Hello, world!"])
print *, 'Hello, world!'
(princ "Hello, world!")
WriteLn('Hello, world!');
print "Hello, world!\n";
(display "Hello World")
#import <stdio.h>
NSLog(@"Hello world\n");
System.Console.WriteLine("Hello World!")
write('Hello, world!\n')
print("Hello World")
putStrLn "Hello world!"
IO.puts "Hello World"
pragma(msg, "Hello World");
console.log('Hello World');
format("Hello world~n")
"Hello World" |> IO.puts
DISPLAY "Hello World!".
use 5.010;
say 'Hello World';
(print "Hello World")
(format T "Hello World")
println("Hello world!")
<?='Hello World'?>
<?php echo 'Hello World'; ?>
println 'Hello World'
print('Hello World')
Transcript cr; show: 'Hello World!'
System.out.printf("%s", "Hello, World!");