Exercises in this lecture   Go to the notes, in which this exercise belongs -- Keyboard shortcut: 'u'   Alphabetic index   Course home   

Exercise solution:
Use of string types


Here is my solution:

using System;

class StringTry{

  public static void Main(){
    string firstName = "\u004B\u0075\u0072\u0074", // "Kurt"
           lastName = "N\u00F8rmark",
           fullName = firstName.Insert(4, String.Concat(" ", lastName));

    Console.WriteLine(firstName);
    Console.WriteLine(lastName);
    Console.WriteLine(fullName);
  }

}