wetmatter nonsense

let's get random 
Filed under

Hello World

 

Visual c# 2008 Hello (Unicode) World (Hexidecimal)...

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HelloWorld
{
   class Program
   {
      static void Main(string[] args)
      {
         ConsoleTitle();
         Greeting();
      }
      static void Greeting()
      {
         string strHello = "\u0048\u0065\u006C\u006C\u006f\n";
         // Unicode of Hello
         string strWorld = "\x77\x6F\x72\x6c\x64\x21\b";
         // Hexidecimal of world
         Console.Write("{0}", strHello);
         Console.Write("{0}", strWorld);
         Console.ReadLine();
      }
      static void ConsoleTitle()
      {
         string strTitle = "Hello(Unicode) World(Hexidecimal) v0.01";
         Console.Title = strTitle;
      }
   }
}

Filed under  //   .NET   .NET 2008   c# 2008   console application   Hello World   hexidecimal   unicode   visual c# 2008  
Posted by Samson Loo 

Comments [0]

Hello World Java Edition Console App..

As you can see the syntax is similar to that of C#

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

Filed under  //   Hello World   JAVA  
Posted by Samson Loo 

Comments [0]