Try (catch error) {Code to execute} catch (Exception) {error (Exception) handling code} finally {final code to execute}
String class
String str = "ASD";
Str. Length: String * * * * * * * str[index number]
Str. Trim (): Remove the left and right sides of the space * * * str. TrimStart (): Remove the left space str. TrimEnd (): Remove the space on the right
Str. ToLower (): Uppercase to lowercase str. ToUpper (): Lowercase to uppercase
Str. StartsWith (): Matches the beginning of Str. EndsWith (): Matches the end of Str. Contains (): matches the entire string ******
Str. IndexOf (): Where a string appears in Str (where it first appears) Str. LastIndexOf (): The last occurrence of a string in str
Str. Substring (): Intercept string ******
Str. Replace (replaces the string inside the parentheses)
Math class:
Math.Round (n,0); Rounding (fractional with fractional reservation) math.ceiling (n), taking the smallest integer greater than the decimal Math.floor (n), taking the maximum integer smaller than the decimal math.sqrt (a), opening the square, square root math.pow (2,4); 2 of the 4-time Square
DateTime class
int a = d.year; year int b = d.month; month int c = d.day; Day int e = d.hour; hour int f = d.minute; minutes int g = d.second; seconds int h = D.mill Isecond; int k = d.dayofyear; the first day of this year
DayOfWeek L = d.dayofweek; week
System.TimeSpan da = new TimeSpan (1,0,0,0); D = D.add (DA); plus a day.
AddYears ()-----addseconds (); Add time
ToString ("yyyy mm month DD day hh" mm min ss sec ")
Application of the class