EduLearn - Online Education Platform

Welcome to EduLearn!

Start learning today with our wide range of courses taught by industry experts. Gain new skills, advance your career, or explore new interests.

Browse Courses

Java Collection framework in arrays

class ASC { public static void main(String args[]) { ArrayList<Integer> find=new ArrayList<Integer>();1 8 9 2 6 6   Scanner s=new Scanner(System.in);   for(int i=0;i<5;i++) { int temp=s.nextInt();//temp=8 if(!find.contains(temp))//true find.add(temp);//[1 8 9 2 6] } Collections.sort(find);[1 2 6 8 9] System.out.println(find); }}

Java collection frameworks in arrays

  Arrays in java import java.util.*; class ASC { public static void main(String args[]) { ArrayList<String> slist=new ArrayList<String>(); slist.add(“honey”);//0 slist.add(“joes”);//1 System.out.println(slist.indexOf(“joes”)); ArrayList<String> slist2=new ArrayList<String>(); slist2.addAll(slist); System.out.println(slist); System.out.println(slist2); }}

What is Collection framework in java

Collection framework:   A Java collection framework provides an architecture to store and manipulate a group of elements or objects   –>It “Provides an architecture” – means it gives a well-structured set of classes and interfaces.   –>”To store, retrieve, and manipulate” – covers the basic operations like adding, removing, searching, sorting, etc.   –>”Group […]

EduLearn - Online Education Platform

Welcome to EduLearn!

Start learning today with our wide range of courses taught by industry experts. Gain new skills, advance your career, or explore new interests.

Browse Courses

Popular Courses

[Course Image]

Introduction to Programming

Learn the fundamentals of programming with Python in this beginner-friendly course.

12 Hours Beginner
[Course Image]

Data Science Essentials

Master the basics of data analysis, visualization, and machine learning.

20 Hours Intermediate
[Course Image]

Web Development Bootcamp

Build modern websites with HTML, CSS, JavaScript and popular frameworks.

30 Hours Beginner
[Course Image]

Digital Marketing Fundamentals

Learn SEO, social media marketing, email campaigns and analytics.

15 Hours Beginner
Educational Website Footer