🔒 Closed C# HashSet (Help)

Status
Not open for further replies.

G I N E B R A

Forum Expert
Pa help naman po dito. Baka alam nyo. Paano koba po ito sisimulan. Nag babasa basa naman po ako. Kaya kang nalilito padin po. Pa gabay naman po. Salamat.
Ayan palang din po nagagawa ko.

#RespectPost 🥺
 

Attachments

  • Screenshot_20201125_131418.webp
    Screenshot_20201125_131418.webp
    29 KB · Views: 20
  • Screenshot_20201125_134348_com.radinc.csharpshell.webp
    Screenshot_20201125_134348_com.radinc.csharpshell.webp
    28 KB · Views: 18
So far eto po nagagawa ko.



HashSet<string>myhash1 = new HashSet<string>();
myhash1.Add("Element 0: ");
myhash1.Add("Element 1: ");
myhash1.Add("Element 2: ");
myhash1.Add("Element 3: ");
myhash1.Add("Element 4: ");
Console.WriteLine("--------Hash1--------");

foreach(var val in myhash1)
{
Console.Write(val);
Console.ReadLine();
}

HashSet<string>myhash2 = new HashSet<string>();
myhash2.Add("Element 0: ");
myhash2.Add("Element 1: ");
myhash2.Add("Element 2: ");
myhash2.Add("Element 3: ");
myhash2.Add("Element 4: ");
Console.WriteLine("--------Hash2--------");

foreach(var val in myhash1)
{
Console.Write(val);
Console.ReadLine();
}
 
Status
Not open for further replies.

Similar threads

About this Thread

  • 2
    Replies
  • 330
    Views
  • 1
    Participants
Last reply from:
G I N E B R A

Trending Topics

Online now

Members online
1,105
Guests online
3,397
Total visitors
4,502

Forum statistics

Threads
2,307,181
Posts
29,177,174
Members
1,193,287
Latest member
bahogbilatte
Back
Top