To learn important concept of Collection and its handling plus its advantages and different class & child class of Collection and their implementations. Important interview questions of the collection.
To learn important concept of Collection and its handling plus its advantages and different class & child class of Collection and their implementations. Important interview questions of the collection.
This presentation introduces some concepts about the Java Collection framework. These slides introduce the following concepts:
- Collections and iterators
- Linked list and array list
- Hash set and tree set
- Maps
- The collection framework
The presentation is took from the Java course I run in the bachelor-level informatics curriculum at the University of Padova.
An Introduction to Part of C++ STL for OI. Introduced the common use of STL algorithms and containers, especially those are helpful to OI.
Also with some examples.
OCA JAVA - 1 Packages and Class StructureFernando Gil
OCA JAVA Training Material
Talking about Packages and Class Structure
- Understanding Packages
- Understanding Package-Derived Classes
- Understanding Class Structure
Slides based in the book: "OCA Java SE 7 Programmer I Study Guide (Examn 1Z0-803)"
This presentation introduces some concepts about the Java Collection framework. These slides introduce the following concepts:
- Collections and iterators
- Linked list and array list
- Hash set and tree set
- Maps
- The collection framework
The presentation is took from the Java course I run in the bachelor-level informatics curriculum at the University of Padova.
An Introduction to Part of C++ STL for OI. Introduced the common use of STL algorithms and containers, especially those are helpful to OI.
Also with some examples.
OCA JAVA - 1 Packages and Class StructureFernando Gil
OCA JAVA Training Material
Talking about Packages and Class Structure
- Understanding Packages
- Understanding Package-Derived Classes
- Understanding Class Structure
Slides based in the book: "OCA Java SE 7 Programmer I Study Guide (Examn 1Z0-803)"
Our trainer’s having vast experience in real time environment. If anyone has a dream for their career in software programming, then go for java because it is a popular route to establish and fulfill your dreams.
We offer the best quality and affordable training, so you get trained from where you are, from our experienced instructors, remotely using Webex / Gotomeeting.
What Is Salesforce CRM? | Salesforce CRM Tutorial For Beginners | Salesforce ...Edureka!
This Salesforce CRM tutorial will take you through what is Salesforce CRM, benefits of Salesforce CRM, how CRM works, along with Salesforce CRM demo and use case. This Salesforce training slides is ideal for beginners to learn CRM.
Slides to understand and present Advanced .net topics with c# language. Topics like delegates, Indexer, Reflection API, Attributes, Collections in c#, File and I/O manipulation etc. are described with examples too.
In this session you will learn:
List – ArrayList, LinkedList
Set – HashSet, LinkedHashSet, TreeSet
For more information: https://www.mindsmapped.com/courses/software-development/become-a-java-developer-hands-on-training/
Arrays In Python | Python Array Operations | EdurekaEdureka!
** Python Certification Training: https://www.edureka.co/python **
This Edureka PPT on 'Arrays in Python' will help you establish a strong hold on all the fundamentals in the Python programming language. Below are the topics covered in this PPT:
What is an array?
Is python list same as an array?
How to create arrays in python?
Accessing array elements
Basic array operations
- Finding the length of an array
- Adding Elements
- Removing elements
- Array concatenation
- Slicing
- Looping
Python Tutorial Playlist: https://goo.gl/WsBpKe
Blog Series: http://bit.ly/2sqmP4s
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
What to learn during the 21 days Lockdown | EdurekaEdureka!
Register Here: https://resources.edureka.co/21-days-learning-plan-webinar/
In light of the complete national lockdown for 21 days, we invite you to join a FREE webinar by renowned Mentor and Advisor, Nitin Gupta as he helps you create a 21-day learning gameplan to maximize returns for your career.
The webinar will help freshers and experienced professionals to capitalize on these 21 days and figure out the best technologies to learn while confined to home.
You will also get all your questions and doubts resolved in real-time.
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
Meetup: https://www.meetup.com/edureka/
Top 10 Dying Programming Languages in 2020 | EdurekaEdureka!
YouTube Link: https://youtu.be/LSM7hD6GM4M
Get Edureka Certified in Trending Programming Languages: https://www.edureka.co
In this highly competitive IT industry, everyone wants to learn programming languages that will keep them ahead of the game. But knowing what to learn so you gain the most out of your knowledge is a whole other ball game. So, we at Edureka have prepared a list of Top 10 Dying Programming Languages 2020 that will help you to make the right choice for your career. Meanwhile, if you ever wondered about which languages are slated for continuing uptake and possible greatness, we have a list for that, too.
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
Top 5 Trending Business Intelligence Tools | EdurekaEdureka!
YouTube Link: https://youtu.be/eEwq_mPd1iI
Edureka BI Certification Training Courses: https://www.edureka.co/bi-and-visualization-certification-courses
Receiving insights and finding trends is absolutely critical for businesses to scale and adapt as the years go on. This is exactly what business intelligence does and the best thing about these software solutions is that their potential uses are practically unlimited.
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
Tableau Tutorial for Data Science | EdurekaEdureka!
YouTube Link:https://youtu.be/ZHNdSKMluI0
Edureka Tableau Certification Training: https://www.edureka.co/tableau-certification-training
This Edureka's PPT on "Tableau for Data Science" will help you to utilize Tableau as a tool for Data Science, not only for engagement but also comprehension efficiency. Through this PPT, you will learn to gain the maximum amount of insight with the least amount of effort.
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
YouTube Link:https://youtu.be/CVv8zhYEjUE
Edureka Python Certification Training: https://www.edureka.co/data-science-python-certification-course
This Edureka PPT on 'Python Programming' will help you learn Python programming basics with the help of interesting hands-on implementations.
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
YouTube Link:https://youtu.be/LvgqSMlIXFs
Get Edureka Certified in Trending Project Management Certifications: https://www.edureka.co/project-management-and-methodologies-certification-courses
Whether you want to scale up your career or are trying to switch your career path, Project Management Certifications seems to be a perfect choice in either case. So, we at Edureka have prepared a list of Top 5 Project Management Certifications that you must check out in 2020 for a major career boost.
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
Top Maven Interview Questions in 2020 | EdurekaEdureka!
YouTube Link: https://youtu.be/5iTcAR4fScM
**DevOps Certification Courses - https://www.edureka.co/devops-certification-training***
This video on 'Maven Interview Questions' discusses the most frequently asked Maven Interview Questions. This PPT will help give you a detailed explanation of the topics which will help you in acing the interviews.
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
YouTube Link: https://youtu.be/xHUiYEIcY_I
** Linux Administration Certification Training - https://www.edureka.co/linux-admin **
Linux Mint is the first operating system that people from Windows or Mac are drawn towards when they have to switch to Linux in their work environment. Linux Mint has been around since the year 2006 and has grown and matured into a very user-friendly OS. Do watch the PPT till the very end to see all the demonstrations.
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
How to Deploy Java Web App in AWS| EdurekaEdureka!
YouTube Link:https://youtu.be/Ozc5Yu_IcaI
** Edureka AWS Architect Certification Training - https://www.edureka.co/aws-certification-training**
This Edureka PPT shows how to deploy a java web application in AWS using AWS Elastic Beanstalk. It also describes the advantages of using AWS for this purpose.
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
YouTube Link:https://youtu.be/phPCkkWT76k
*** Edureka Digital Marketing Course: https://www.edureka.co/post-graduate/digital-marketing-certification***
This Edureka PPT on "Top 10 Reasons to Learn Digital Marketing" will help you understand why you should take up Digital Marketing
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
YouTube Link: https://youtu.be/R132INtDg9k
** RPA Training: https://www.edureka.co/robotic-process-automation-training**
This PPT on RPA in 2020 will provide a glimpse of the accomplishments and benefits provided by RPA. Also, it will list out the new changes and technologies that will collaborate with RPA in 2020.
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
YouTube Link: https://youtu.be/mb8WOHejlT8
**DevOps Certification Courses - https://www.edureka.co/devops-certification-training **
This PPT shows how to configure Jenkins to receive email notifications. It also includes a demo that shows how to do it in 6 simple steps in the Windows machine.
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
EA Algorithm in Machine Learning | EdurekaEdureka!
YouTube Link: https://youtu.be/DIADjJXrgps
** Machine Learning Certification Training: https://www.edureka.co/machine-learning-certification-training **
This Edureka PPT on 'EM Algorithm In Machine Learning' covers the EM algorithm along with the problem of latent variables in maximum likelihood and Gaussian mixture model.
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
YouTube Link: https://youtu.be/Zsl7ttA9Kcg
PGP in AI and Machine Learning (9 Months Online Program): https://www.edureka.co/post-graduate/machine-learning-and-ai
This Edureka PPT on "Cognitive AI" explains cognitive computing and how it helps in making better human decisions at work. Also, it explains the differences between cognitive computing and artificial intelligence.
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
YouTube Link: https://youtu.be/0djPrlaxx_U
Edureka AWS Architect Certification Training - https://www.edureka.co/aws-certification-training
This Edureka PPT on AWS Cloud Practitioner will provide a complete guide to your AWS Cloud Practitioner Certification exam. It will explain the exam details, objectives, why you should get certified and also how AWS certification will help your career.
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
Blue Prism Top Interview Questions | EdurekaEdureka!
YouTube Link: https://youtu.be/ykbRdUNIbyQ
** RPA Training: https://www.edureka.co/robotic-process-automation-certification-courses**
This PPT on Blue Prism Interview Questions will cover the Top 50 Blue Prism related questions asked in your interviews.
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
YouTube Link: https://youtu.be/ge4qhkl9uKg
AWS Architect Certification Training: https://www.edureka.co/aws-certification-training
This PPT will help you in understanding how AWS deals smartly with Big Data. It also shows how AWS can solve Big Data challenges with ease.
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaEdureka!
YouTube Link: https://youtu.be/amlkE0g-YFU
** Artificial Intelligence and Deep Learning: https://www.edureka.co/ai-deep-learni... **
This Edureka PPT on 'A Star Algorithm' teaches you all about the A star Algorithm, the uses, advantages and disadvantages and much more. It also shows you how the algorithm can be implemented practically and has a comparison between the Dijkstra and itself.
Check out our playlist for more videos: http://bit.ly/2taym8X
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
Kubernetes Installation on Ubuntu | EdurekaEdureka!
YouTube Link: https://youtu.be/UWg3ORRRF60
Kubernetes Certification: https://www.edureka.co/kubernetes-certification
This Edureka PPT will help you set up a Kubernetes cluster having 1 master and 1 node. The detailed step by step instructions is demonstrated in this PPT.
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
YouTube Link: https://youtu.be/GJQ36pIYbic
DevOps Training: https://www.edureka.co/devops-certification-training
This Edureka DevOps Tutorial for Beginners talks about What is DevOps and how it works. You will learn about several DevOps tools (Git, Jenkins, Docker, Puppet, Ansible, Nagios) involved at different DevOps stages such as version control, continuous integration, continuous delivery, continuous deployment, continuous monitoring.
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
Acetabularia Information For Class 9 .docxvaibhavrinwa19
Acetabularia acetabulum is a single-celled green alga that in its vegetative state is morphologically differentiated into a basal rhizoid and an axially elongated stalk, which bears whorls of branching hairs. The single diploid nucleus resides in the rhizoid.
Biological screening of herbal drugs: Introduction and Need for
Phyto-Pharmacological Screening, New Strategies for evaluating
Natural Products, In vitro evaluation techniques for Antioxidants, Antimicrobial and Anticancer drugs. In vivo evaluation techniques
for Anti-inflammatory, Antiulcer, Anticancer, Wound healing, Antidiabetic, Hepatoprotective, Cardio protective, Diuretics and
Antifertility, Toxicity studies as per OECD guidelines
The French Revolution, which began in 1789, was a period of radical social and political upheaval in France. It marked the decline of absolute monarchies, the rise of secular and democratic republics, and the eventual rise of Napoleon Bonaparte. This revolutionary period is crucial in understanding the transition from feudalism to modernity in Europe.
For more information, visit-www.vavaclasses.com
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
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.
Embracing GenAI - A Strategic ImperativePeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
2. Input and Output
• Input is the data what we give to the program.
• Output is the data what we receive from the
program in the form of result.
• Stream represents flow of data i.e. sequence of
data.
• To give input we use InputStream and to
receive output we use OutputStream.
3. How input is read from Keyboard?
connected to send data to
System.in InputStream
BufferedReader
Reader
It represents It reads data from It reads data from
keyboard. To read keyboard and InputStreamReader and
data from keyboard send that data to stores data in buffer. It has
it should be got methods so that data
connected to BufferedReader. can be easily accessed.
InputStreamReader
4. Reading Input from console
• Input can be given either from file or keyword.
• Input can be read from console in 3 ways.
BufferedReader
StringTokenizer
Scanner
5. BufferedReader
BufferedReader bufferedreader = new
BufferedReader(new InputStreamReader(System.in));
int age = bufferedreader.read();
Methods
String name = bufferedreader.readLine();
int read()
String readLine()
6. StringTokenizer
•It can be used to accept multiple inputs from console in a single
line where as BufferedReader accepts only one input from a line.
•It uses delimiter(space, comma) to make the input into tokens.
BufferedReader bufferedreader = new BufferedReader(new
InputStreamReader(System.in));
String input = bufferedreader.readLine();
StringTokenizer tokenizer = new StringTokenizer(input, ”,”);
String name = tokenizer.nextToken();
delimiter
int age=tokenizer.nextToken();
7. Scanner
• It accepts multiple inputs from file or keyboard and divides
into tokens.
• It has methods to different types of input( int, float, string,
long, double, byte) where tokenizer does not have.
Scanner scanner = new Scanner(System.in);
int rollno = scanner.nextInt();`
String name = scanner.next();
8. Writing output to console
• The output can be written to console in 2 ways:
print(String)-
System.out.print(“hello”);
write(int)-
int input=‘i’;
System.out.write(input);
System.out.write(‘/n’);
9. I/O Streams
I/O Streams
Unicode Character Oriented
Byte Oriented Streams
Streams
InputStream OutputStream Reader Writer
InputStream OutputStream
FileInputStream FileOutputStream
Reader Writer
DataInputStream DataOutputStream
May be buffered or unbuffered FileReader FileWriter
11. ArrayList class
• The ArrayList class is a concrete implementation of
the List interface.
• Allows duplicate elements.
• A list can grow or shrink dynamically
• On the other hand array is fixed once it is created.
– If your application does not require insertion or deletion
of elements, the most efficient data structure is the
array
12. ArrayList class
Java.util.ArrayList size: 5
elementData
0 1 2 3 4 … …
Ravi Rajiv Megha Sunny Atif
13. Methods in ArrayList
• boolean add(Object e) • Iterator iterator()
• void add(int index, Object • ListIterator listIterator()
element)
• boolean addAll(Collection c)
• int indexOf()
• Object get(int index) • int lastIndexOf()
• Object set(int index,Object
element) • int index(Object element)
• int size()
• Object remove(int index) • void clear()
Java Programming: OOP 13
14. ArrayList - Insertion
// Create an arraylist
ArrayList arraylist = new ArrayList();
// Adding elements
arraylist.add("Rose");
arraylist.add("Lilly");
arraylist.add("Jasmine");
arraylist.add("Rose");
//removes element at index 2
arraylist.remove(2);
15. How to trace the elements of ArrayList?
• For-each loop
• Iterator
• ListIterator
• Enumeration
Java Programming: OOP 15
16. For-each loop
• It’s action similar to for loop. It traces through all
the elements of array or arraylist.
• No need to mention size of Arraylist.
• for ( String s : arraylist_name)
Keyword type of data name of arraylist
stored in arraylist
Java Programming: OOP 16
17. Iterator
• Iterator is an interface Iterator Methods
that is used to traverse
through the elements
of collection. • boolean hasNext()
• It traverses only in • element next()
forward direction with • void remove ()
the help of methods.
Java Programming: OOP 17
19. ListIterator
• ListIterator is an ListIterator Methods
interface that traverses • boolean hasNext()
through the elements
• element next()
of the collection.
• void remove ()
• It traverses in both
forward and reverse • boolean
direction. hasPrevious()
• element previous()
Java Programming: OOP 19
20. Displaying Items using ListIterator
// To modify objects we use ListIterator
ListIterator listiterator =
arraylist.listIterator();
while (listiterator.hasNext()) {
Object object = listiterator.next();
listiterator.set("(" + object + ")");
}
Java Programming: OOP
21. Enumeration
• Enumeration is an
interface whose action Enumeration Methods
is similar to iterator. • boolean
• But the difference is hasMoreElement()
that it have no method • element
for deleting an element nextElement()
of arraylist.
Java Programming: OOP 21
24. HashMap Class
• The HashMap is a class which is used to perform operations such as
inserting, deleting, and locating elements in a Map .
• The Map is an interface maps keys to the elements.
• Maps are unsorted and unordered.
• Map allows one null key and multiple null values
• HashMap < K, V >
key value associated with key
• key act as indexes and can be any objects.
30. Hashtable Class
• Hashtable is a class which is used to perform operations such as
inserting, deleting, and locating elements similar to HashMap .
• Similar to HashMap it also have key and value.
• It does not allow null keys and null values.
• The only difference between them is Hashtable
is synchronized where as HashMap is not by default.
Often, you will want to cycle through the elements in a collection. For example, you might want to display each element.The easiest way to do this is to employ an iterator, which is an object that implements either the Iterator or the ListIterator interface.Iterator enables you to cycle through a collection, obtaining or removing elements. ListIterator extends Iterator to allow bidirectional traversal of a list, and the modification of elements.
Often, you will want to cycle through the elements in a collection. For example, you might want to display each element.The easiest way to do this is to employ an iterator, which is an object that implements either the Iterator or the ListIterator interface.Iterator enables you to cycle through a collection, obtaining or removing elements. ListIterator extends Iterator to allow bidirectional traversal of a list, and the modification of elements.
Often, you will want to cycle through the elements in a collection. For example, you might want to display each element.The easiest way to do this is to employ an iterator, which is an object that implements either the Iterator or the ListIterator interface.Iterator enables you to cycle through a collection, obtaining or removing elements. ListIterator extends Iterator to allow bidirectional traversal of a list, and the modification of elements.