1. Hello World

    A basic java program.

    class HelloWorld
    {
        static public void main( String args[] )
        {
            System.out.println( "Hello World!" );
        }
    }

  2. Hello World

    A basic C++ program.

    #include <iostream>
     
    int main()
    {
        std::cout << "Hello World!";
    }

    #include <iostream> includes the code needed to output text to the console.
    std::cout is the command to output to the console.
    << passes the string "Hello World!" to the std::cout command.

  3. Welcome

    New examples and explanations are being added daily to help you learn and program in C++, Java, JavaFX, and PHP.

Syndicate content