CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 10:20:04 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=f8a4830411728844d48c0dc3d6c3082725a65641c63e9c104212aa3ecf8c6094a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22N91oXleSfinANxfWvWMbVeA6_UcDPBr1%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d5dccebe367679-BLR
Imports System.CollectionsModule Program Sub Main() ' Create an - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Imports System.Collections
- Module Program
- Sub Main()
- ' Create an ArrayList
- Dim myList As ArrayList = New ArrayList()
- ' Add elements of different types
- myList.Add(10) ' Integer
- myList.Add("Hello") ' String
- myList.Add(True) ' Boolean
- ' Display Count and Capacity
- Console.WriteLine("Initial Count: " & myList.Count)
- Console.WriteLine("Initial Capacity: " & myList.Capacity)
- ' Access and update an item using the Item property
- Console.WriteLine("Item at index 0: " & myList.Item(0))
- myList.Item(0) = 15 ' Update the first element
- Console.WriteLine("Updated item at index 0: " & myList.Item(0))
- ' Insert an element at a specific index
- myList.Insert(1, 20) ' Inserts 20 at index 1
- Console.WriteLine("Item at index 1 after insertion: " & myList.Item(1))
- ' Check if the ArrayList contains a specific value
- Console.WriteLine("Contains 15: " & myList.Contains(15))
- ' Find the index of a specific value
- Console.WriteLine("Index of 20: " & myList.IndexOf(20))
- ' Remove an element by value
- myList.Remove("Hello") ' Removes the first occurrence of "Hello"
- ' Remove an element by index
- If myList.Count > 2 Then ' Safeguard against out-of-range errors
- myList.RemoveAt(2) ' Removes the element at index 2
- End If
- ' Display the final list using a For Each loop
- Console.WriteLine("Elements in ArrayList:")
- For Each item In myList
- Console.WriteLine(item)
- Next
- ' Clear the ArrayList
- myList.Clear()
- Console.WriteLine("Count after Clear: " & myList.Count)
- ' Display Capacity after Clear
- Console.WriteLine("Capacity after Clear: " & myList.Capacity)
- End Sub
- End Module
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐⭐⭐Exploit 500$ in 15 Minutes⭐⭐
Java | 1 min ago | 0.10 KB
-
⭐⭐⭐Crypto Accounts⭐⭐
Java | 1 min ago | 0.10 KB
-
⭐⭐⭐Make $15OO in 2O minutesV E⭐⭐
Java | 1 min ago | 0.10 KB
-
⭐⭐⭐Crypto Accounts⭐⭐
Java | 1 min ago | 0.10 KB
-
⭐⭐⭐Exchange Exploit T I⭐⭐
Java | 1 min ago | 0.10 KB
-
⭐⭐⭐Instant Profit Method⭐⭐
Java | 1 min ago | 0.10 KB
-
⭐⭐⭐GMAIL Logs (2FA disabled)⭐⭐
Java | 1 min ago | 0.10 KB
-
⭐⭐⭐Profit Method⭐⭐
Java | 1 min ago | 0.10 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand