News:

Choose a design and let our professionals help you build a successful website   - ITAcumens

Main Menu

Hello World

Started by sukishan, Sep 04, 2009, 03:45 PM

Previous topic - Next topic

sukishan

A simple Hello World J# application looks pretty much like a typical Java application. The only difference is the use of the .NET Framework class library (System.Console.WriteLine) instead of the typical Java System.out.println.

Java supports the notion of namespaces through packages, and that has been incorporated into J# for .NET namespaces. Also, Java provides the capability of using external class libraries with the import keyword. This has also been utilized with J# as well. (Note: J# requires a ".*" to be attached to the namespace.)

package hks;
import System.*;
public class HelloWorld
{
  public static void main()
  {
    Console.WriteLine("Hello World in J#");
  }
}
A good beginning makes a good ending