Object Oriented Programming using C#

(backadmin) #1
Object Oriented Programming using C#
Generic Collections and how to Serialize them

Activity 5

The code below will find a String in a set of Strings (called StringSet). Amend this so this will work find a Publication in a set
of Publications (called PublicationSet).
public void FindString(String s)
{
boolean found;
found = StringSet.Contains(s);
if (found)
{
Console.WriteLine(“Element “ + s + “ found in set”);
}
else
{
Console.WriteLine(“Element “ + s + “ NOT found in set”);
}
}

your chance


to change


the world


Here at Ericsson we have a deep rooted belief that
the innovations we make on a daily basis can have a
profound effect on making the world a better place
for people, business and society. Join us.
In Germany we are especially looking for graduates
as Integration Engineers for
• Radio Access and IP Networks
• IMS and IPTV
We are looking forward to getting your application!
To apply and for all current job openings please visit
our web page: http://www.ericsson.com/careers

Please click the advert

Free download pdf