WHAT ARE COLLECTIONS?
Collections store arbitrary objects in a structured manner. Types of collections available within the .NET Framework are:
ARRAYS
ADVANCED COLLECTIONS -
i) Non - Generics
ii) Generics
This session is all about - the mechanism provided by Java Virtual Machine to reclaim heap space from objects which are eligible for Garbage collection.
Analysis of data in Python with SciPy and pandas, Ubuntu installation, PyCharm configuration, Series, DataFrame, big data, medical data, merging data, groupby, graphing data, iPython using Wakari.io, and analyzing stock prices of US automakers including Ford and Telsa. As presented at Penguicon 2016.
This session is all about - the mechanism provided by Java Virtual Machine to reclaim heap space from objects which are eligible for Garbage collection.
Analysis of data in Python with SciPy and pandas, Ubuntu installation, PyCharm configuration, Series, DataFrame, big data, medical data, merging data, groupby, graphing data, iPython using Wakari.io, and analyzing stock prices of US automakers including Ford and Telsa. As presented at Penguicon 2016.
Collections in .net technology (2160711)Janki Shah
Collections in .NET Framework.
- What is collections?
- Needs of Collections/ importance of collection
- various most useful classes of collection such as
ArrayList, Hashtable, Stack, Queue, BitArray, SortedList
Presentation related to the Java Hands-On Workshop I had conducted at MVJ College Of Engineering, Bengaluru.
The code examples and exercises related to the workshop can be found at https://github.com/arpoladia/java-hands-on-workshop.
Credits go to the book Thinking in Java by Bruce Eckel (http://www.mindviewinc.com/Books/TIJ4/). I strongly recommend all Java programmers to buy and read this book cover to cover.
Module 8 : Implementing collections and genericsPrem Kumar Badri
Overview:
Examining Collections and Collection Interfaces
Working with Primary Collection Types
Working with Generic Collections
Working with Specialized Collections
Working with Collection Base Classes
Overview:
Introduction to Statements
Using Selection Statements
Using Iteration Statements
Using Jump Statements
Handling Basic Exceptions
Raising Exceptions
Module 1 : Overview of the Microsoft .NET PlatformPrem Kumar Badri
Introduction to the .NET Platform
Overview:
Overview of the .NET Framework
Benefits of the .NET Framework
The .NET Framework Components
Languages in the .NET Framework
Inheritance is the capability of a class to use the properties and methods of another class while adding its own functionality.
Enables you to add new features and functionality to an existing class without modifying the existing class.
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdfTechSoup
In this webinar you will learn how your organization can access TechSoup's wide variety of product discount and donation programs. From hardware to software, we'll give you a tour of the tools available to help your nonprofit with productivity, collaboration, financial management, donor tracking, security, and more.
Ethnobotany and Ethnopharmacology:
Ethnobotany in herbal drug evaluation,
Impact of Ethnobotany in traditional medicine,
New development in herbals,
Bio-prospecting tools for drug discovery,
Role of Ethnopharmacology in drug evaluation,
Reverse Pharmacology.
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxEduSkills OECD
Andreas Schleicher presents at the OECD webinar ‘Digital devices in schools: detrimental distraction or secret to success?’ on 27 May 2024. The presentation was based on findings from PISA 2022 results and the webinar helped launch the PISA in Focus ‘Managing screen time: How to protect and equip students against distraction’ https://www.oecd-ilibrary.org/education/managing-screen-time_7c225af4-en and the OECD Education Policy Perspective ‘Students, digital devices and success’ can be found here - https://oe.cd/il/5yV
Model Attribute Check Company Auto PropertyCeline George
In Odoo, the multi-company feature allows you to manage multiple companies within a single Odoo database instance. Each company can have its own configurations while still sharing common resources such as products, customers, and suppliers.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
Palestine last event orientationfvgnh .pptxRaedMohamed3
An EFL lesson about the current events in Palestine. It is intended to be for intermediate students who wish to increase their listening skills through a short lesson in power point.
This is a presentation by Dada Robert in a Your Skill Boost masterclass organised by the Excellence Foundation for South Sudan (EFSS) on Saturday, the 25th and Sunday, the 26th of May 2024.
He discussed the concept of quality improvement, emphasizing its applicability to various aspects of life, including personal, project, and program improvements. He defined quality as doing the right thing at the right time in the right way to achieve the best possible results and discussed the concept of the "gap" between what we know and what we do, and how this gap represents the areas we need to improve. He explained the scientific approach to quality improvement, which involves systematic performance analysis, testing and learning, and implementing change ideas. He also highlighted the importance of client focus and a team approach to quality improvement.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
How to Split Bills in the Odoo 17 POS ModuleCeline George
Bills have a main role in point of sale procedure. It will help to track sales, handling payments and giving receipts to customers. Bill splitting also has an important role in POS. For example, If some friends come together for dinner and if they want to divide the bill then it is possible by POS bill splitting. This slide will show how to split bills in odoo 17 POS.
2. WHAT ARE COLLECTIONS?
• Collections store arbitrary objects in a
structured manner. Types of collections
available within the .NET Framework are:
• ARRAYS
• ADVANCED COLLECTIONS -
i) Non - Generics
ii) Generics
3. Comparing Arrays to Collections
• An array cannot resize itself when full
– A collection class, such as ArrayList, can resize
• An array is intended to store elements of one
type
– A collection is designed to store elements of different
types
• Elements of an array cannot have read-only
access
– A collection can have read-only access
• In general, arrays are faster but less flexible
– Collections are slightly slower but more flexible
4. Non – Generic Collections
• A part of .Net - Framework since version 1.0
• Defined in the System.Collections namespace.
• General purpose data structures that operate
on OBJECT REFERENCES.
• Collections that hold the elements of different
datatypes.
5. Boxing and UnBoxing
• Boxing - The process of converting a value type to
the type object. When the CLR boxes a value type
,it wraps the value inside a System.Object and
stores it on the heap . Boxing is implicit .
• UnBoxing – It extracts the value type from object
type. UnBoxing is explicit.
• Disadvantage- It degrades the system
performance.
6. How a Flexible Collection of Reference
Types Is Created by Using ArrayList ??
• ArrayList -
A class representing a list, which is similar to a single-
dimensional array that you can
resize dynamically.
C# code-*-**
ArrayList countries = new ArrayList();
countries.Add("Belgium");
countries.Add ("China");
countries.Add("New Zealand");
7. Class ArrayList-
•Provides dynamic resizing of the collection
through the class’s method
•Property Capacity
•Manipulate the capacity of the ArrayList
•When ArrayList needs to grow, it by default
doubles its Capacity
•Store references to objects
•All classes derive from class object
•Can contain objects of any type
8. •A stack can be visualized as a stack of books
arranged one on top of the other.
• You can pick or access the top-most book in
the stack because it was the last book added.
The Stack class works on the same principle.
Stack
•A queue can be visualized as a line in a grocery store,
where customers enter the queue from the rear and
exit the queue from the front.
• Therefore, the first customer to enter the queue is
the first to exit it. The Queue class follows the same
principle.
Queue
9. STACK
• Class Stack
– Contains methods Push and Pop to perform the basic stack
operations.
– Method Push
• Takes and inserts an object to the top of the Stack
• Grows to accommodate more objects
– When the number of items on the Stack (the Count
property) is equal to the capacity at the time of the Push
operation
• Can store only references to objects
– Value types are implicitly boxed before they are added
– Method Pop
• Removes and returns the object current on the top of the
Stack
– Method Peek
• Returns the value of the top stack element
• Does not remove the element from the Stack
– Note on methods Pop and Peek
• Throws InvalidOperationException if the Stack is empty
– Property Count
• Obtain the number of elements in Stack
10. 10
1 // Fig. 27.6: StackTest.cs
2 // Demonstrating class Stack.
3 using System;
4 using System.Collections;
5
6 public class StackTest
7 {
8 public static void Main( string[] args )
9 {
10 Stack stack = new Stack(); // default Capacity of 10
11
12 // create objects to store in the stack
13 bool aBoolean = true;
14 char aCharacter = '$';
15 int anInteger = 34567;
16 string aString = "hello";
17
18 // use method Push to add items to (the top of) the stack
19 stack.Push( aBoolean );
20 PrintStack( stack );
21 stack.Push( aCharacter );
22 PrintStack( stack );
23 stack.Push( anInteger );
24 PrintStack( stack );
25 stack.Push( aString );
26 PrintStack( stack );
27
28 // check the top element of the stack
29 Console.WriteLine( "The top element of the stack is {0}n",
30 stack.Peek() );
Outline
StackTest.cs
(1 of 3)
Create a stack with the default
initial capacity of 10
elements
Add four elements to the
stack
Obtain the value of the top stack
element
11. HASHTABLE
• Class HashTable
– Hashing
• Convert the application key rapidly to an index and the
information could be store/retrieve at that location in
the array
• The data is stored in a data structure called a hash table
• Convert a key into an array subscript
– Literally scramble the bits
» Makes a “hash” of the number
12. Adding entries to hashtable and
display them
Using System;
Using System.Collections;
Class Program
{
Static void main()
{
Hashtable hashtable = new Hashtable();
hashtable[1]=“one”;
hashtable[2]=“two”;
hashtable[13]=“thirteen”;
foreach(DictionaryEntry entry in hashtable)
{
Console.Writeline(“{0},{1}”, entry.key , entry.value);
}
}
}
13. COLLOSION
– The load factor
• The ratio of the number of objects stored in the hash
table to the total number of cells of the hash table
• Affects the performance of hashing schemes
–The chance of collisions tends to increase as this
ratio gets higher
– A hash function
• Performs a calculation that determines where to place
data in the hash table
• Applied to the key in a key–value pair of objects
– Class Hashtable can accept any object as a key
• Class object defines method GetHashCode that all
objects inherit.
14. DISADVANTAGES OF NON-GENERIC
COLLECTION
• Problems with Non-Generic Collections
– Hashtable stores its keys and data as object
references
• Say we store only string keys and int values by
convention
– Inefficient!
– Cannot control what is being put into the
Hashtable
15. Continue..
• Due to this disadvantages, they do not have
the type safety , therefore we go for generic
collections.