How to use String.Join to concatenates string array elements with specified separator in VB.NET

1 Answer

0 votes
Module Module1

    Sub Main()

        Dim arr(2) As String

        arr(0) = "vb"
        arr(1) = "dot"
        arr(2) = "net"

        Console.WriteLine(String.Join(",", arr))

    End Sub

End Module

'run:
' 
' vb,dot,net

 



answered Mar 2, 2016 by avibootz
...