Statements

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

Previous topic - Next topic

sukishan

Statements
Statements in J# are very similar to those in C#.

package hks;
import System.*;
public class UseStatements
{
  public static void main()
  {
    String[] message = {"Hello","World","in","VJ#"};
    for (int i=0;i<message.get_Length();i++)
    {
      Console.Write(message+" ");
    }
    int a = 10;
    int b = 10;
    if (a<b) {
      Console.WriteLine("a<b");
    } else {

      Console.WriteLine("a>=b");
    }
  }
}
A good beginning makes a good ending