How to initial array of strings with multiline strings in VB.NET

1 Answer

0 votes
Imports System

Public Module Module1
	Public Sub Main()
		Dim arr() As String = {"vb.net", _
                               "java", _
                               "c++", _
							   "php", _
							   "python"}
		
        For Each s As String In arr
            Console.WriteLine(s)
        Next
	End Sub
End Module




' run:
'
' vb.net
' java
' c++
' php
' python
'

 



answered Jan 22, 2021 by avibootz
...