Mega Code Archive

 
Categories / VB.Net / Data Structure
 

Add element to an ArrayList and get its Length

Imports System Imports System.Collections Public Class MainClass    Shared Sub Main()     Dim myList As New ArrayList()     myList.Add("aa")     Console.WriteLine("You entered " & myList.Count() & " ITEMS.")    End Sub  End Class