VB.net Program to Delete All Items From Queue Using the Collection

You are currently viewing VB.net Program to Delete All Items From Queue Using the Collection

VB.Net program to delete all items from Queue using the collection

'VB.Net program to delete all items from QUEUE 
'using the collection.

Imports System
Imports System.Collections

Module Module1
    Sub Main()
        Dim queue As New Queue(5)

        queue.Enqueue("India")
        queue.Enqueue("USA")
        queue.Enqueue("UK")
        queue.Enqueue("CHINA")

        queue.Clear()
        Console.WriteLine("All items are deleted from QUEUE successfully")
    End Sub
End Module
All items are deleted from QUEUE successfully
Press any key to continue . . .

Ranjith Kumar

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Reply