Answers for "how to check last letter of string in array c#"

C#
15

c# get last character of string

string str = "Hello World";
string substr = str.Substring(str.Length - 1);
Posted by: Guest on May-23-2020
9

get last element of array c#

string[] str = new string[] {"Java","HTML","jQuery"};
Console.WriteLine("Last element: "+str[str.Length - 1])
Posted by: Guest on June-21-2020

Code answers related to "how to check last letter of string in array c#"

C# Answers by Framework

Browse Popular Code Answers by Language