Home Whiteboard Online Compilers Practice Articles AI Assistant Jobs Tools Corporate Training
SQL HTML CSS Javascript Python Java C C++ PHP Scala C# Tailwind CSS Node.js MySQL MongoDB PL/SQL Swift Bootstrap R Machine Learning Blockchain Angular React Native Computer Fundamentals Compiler Design Operating System Data Structure and Algorithms Computer Network DBMS Excel
Java Programming Examples
  • Example - Home
  • Example - Environment
  • Example - Strings
  • Example - Arrays
  • Example - Date & Time
  • Example - Methods
  • Example - Files
  • Example - Directories
  • Example - Exceptions
  • Example - Data Structure
  • Example - Collections
  • Example - Networking
  • Example - Threading
  • Example - Applets
  • Example - Simple GUI
  • Example - JDBC
  • Example - Regular Exp
  • Example - Apache PDF Box
  • Example - Apache POI PPT
  • Example - Apache POI Excel
  • Example - Apache POI Word
  • Example - OpenCV
  • Example - Apache Tika
  • Example - iText
  • Java - Tutorial
  • Java Useful Resources
  • Java - Quick Guide
  • Java - Useful Resources
  • Selected Reading
  • UPSC IAS Exams Notes
  • Developer's Best Practices
  • Questions and Answers
  • Effective Resume Writing
  • AI Based Resume Builder
  • Personal AI Study Assistant
  • Generate Coding Logic
  • HR Interview Questions
  • Computer Glossary
  • Who is Who

Java Collections - Programming Examples



Previous
Quiz
Next

Learn how to play with collections in Java programming. Here are most commonly used examples −

  • How to convert an array into a collection?

  • How to compare elements in a collection?

  • How to convert a collection into an array?

  • How to print a collection?

  • How to make a collection read-only?

  • How to remove a specific element from a collection?

  • How to reverse a collection?

  • How to shuffle the elements of a collection?

  • How to get the size of a collection?

  • How to iterate through elements of HashMap?

  • How to use different types of Collections?

  • How to use enumeration to display contents of HashTable?

  • How to get Set view of Keys from Java Hashtable?

  • How to find min & max of a List?

  • How to find a sublist in a List?

  • How to replace an element in a list?

  • How to rotate elements of the List?

Print Page
Previous
Next
TOP TUTORIALS
  • Python Tutorial
  • Java Tutorial
  • C++ Tutorial
  • C Programming Tutorial
  • C# Tutorial
  • PHP Tutorial
  • R Tutorial
  • HTML Tutorial
  • CSS Tutorial
  • JavaScript Tutorial
  • SQL Tutorial
TRENDING TECHNOLOGIES
  • Cloud Computing Tutorial
  • Amazon Web Services Tutorial
  • Microsoft Azure Tutorial
  • Git Tutorial
  • Ethical Hacking Tutorial
  • Docker Tutorial
  • Kubernetes Tutorial
  • DSA Tutorial
  • Spring Boot Tutorial
  • SDLC Tutorial
  • Unix Tutorial
CERTIFICATIONS
  • Business Analytics Certification
  • Java & Spring Boot Advanced Certification
  • Data Science Advanced Certification
  • Cloud Computing And DevOps
  • Advanced Certification In Business Analytics
  • Artificial Intelligence And Machine Learning
  • DevOps Certification
  • Game Development Certification
  • Front-End Developer Certification
  • AWS Certification Training
  • Python Programming Certification
COMPILERS & EDITORS
  • Online Java Compiler
  • Online Python Compiler
  • Online Go Compiler
  • Online C Compiler
  • Online C++ Compiler
  • Online C# Compiler
  • Online PHP Compiler
  • Online MATLAB Compiler
  • Online Bash Terminal
  • Online SQL Compiler
  • Online Html Editor
  • ABOUT US
  • OUR TEAM
  • CAREERS
  • JOBS
  • CONTACT US
  • TERMS OF USE
  • PRIVACY POLICY
  • REFUND POLICY
  • COOKIES POLICY
  • FAQ'S
tutorials point logo
Download Android App Download IOS App

Tutorials Point is a leading Ed Tech company striving to provide the best learning material on technical and non-technical subjects.

© Copyright 2025. All Rights Reserved.