How to convert list of numbers to string in VB.NET

1 Answer

0 votes
Imports System
Imports System.Collections.Generic

Public Class Program
	Public Shared Sub Main()
        Dim list As List(Of Integer) = New List(Of Integer)() From {
            2,
            4,
            18,
            530
        }
		
        Dim str As String = String.Join(" ", list.ToArray())
		
        Console.Write(str)
    End Sub
End Class





' run:
'
' 2 4 18 530
'

 



answered Aug 4, 2023 by avibootz
...