8 kyu
Classic Hello World
4,768 of 19,703Javatlacati
Description:
You are given a method called main
, make it print the line Hello World!
, (yes, that includes a new line character at the end) and don't return anything
Note that for some languages, the function main
is the entry point of the program.
Here's how it will be tested:
java Solution.class parameter1 parameter2
Hints:
- Check your references
- Think about the scope of your method
- If you still don't get it probably you can define main as an attribute of the Solution class that accepts a single argument, and that only prints "Hello World!" without any return.
Fundamentals
Object-oriented Programming
Similar Kata:
Stats:
Created | Apr 5, 2016 |
Published | Apr 5, 2016 |
Warriors Trained | 41463 |
Total Skips | 1872 |
Total Code Submissions | 65641 |
Total Times Completed | 19703 |
Java Completions | 4768 |
Ruby Completions | 646 |
CoffeeScript Completions | 26 |
JavaScript Completions | 4666 |
Python Completions | 5695 |
C# Completions | 1478 |
PHP Completions | 1100 |
Shell Completions | 2147 |
Prolog Completions | 43 |
Groovy Completions | 17 |
Total Stars | 244 |
% of votes with a positive feedback rating | 65% of 2293 |
Total "Very Satisfied" Votes | 1222 |
Total "Somewhat Satisfied" Votes | 534 |
Total "Not Satisfied" Votes | 537 |