using System; public class Test { public static void Main() { Console.WriteLine("abc".Replace("", "k")); Console.WriteLine("".Replace("", "k")); } }
Standard input is empty
Standard output is empty
Unhandled exception. System.ArgumentException: String cannot be of zero length. (Parameter 'oldValue') at System.String.Replace(String oldValue, String newValue) at Test.Main() in /home/xH2rxX/Project/Program.cs:line 7