How to replace all instances of substring in StringBuilder with VB.NET

1 Answer

0 votes
Imports System
Imports System.Text

Public Class Program
	Public Shared Sub Main()
		Dim sb As New StringBuilder("VB.NET Java Java C# Python Java C")

		sb.Replace("Java", "C++")
		
        Console.WriteLine(sb)
    End Sub
End Class
  
 
 
  
  
' run:
'
' VB.NET C++ C++ C# Python C++ C
'

 



answered Oct 27, 2022 by avibootz

Related questions

...