string processing in VB.NET
string processing in VB.NET
Dim str As String = "The quick brown fox jumps over the lazy dog"
Console.WriteLine(result)
Expected Output: The fast brown fox jumps over the lazy cat
Console.WriteLine(sub)
Console.WriteLine(fruit)
Next
Expected Output:
apple
orange
banana
grape
Dim result As String = String.Format("Name: {0}, Age: {1}, Status: {2}", name, age, If(age >= 18, "Adult", "Minor"))
Console.WriteLine(result)
Trace the output.
Console.WriteLine(isEqual)
sb.Replace("World", "VB.NET")
Console.WriteLine(sb.ToString())
Expected Output:
Length: 22
Index of 'VB': 14
Console.WriteLine(result)
Console.WriteLine("Trimmed: '" & trimmed & "' Length: " & length)
For i As Integer = 1 To 5
Next
Console.WriteLine(sb.ToString())