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 Array list by adding elements

Question: Create an Arraylist by adding elements Apple,banana,mango   First element:Apple Second element:banana Third element:mango   sort the list reverse the list ——————————- import java.util.*;   class ASC { public static void main(String args[]) { ArrayList<String> fruits=new ArrayList<String>();   fruits.add(“Apple”); fruits.add(“Banana”); fruits.add(“Mango”);   System.out.println(“First element:”+fruits.get(0)); System.out.println(“second element:”+fruits.get(1)); System.out.println(“Third element:”+fruits.get(2));   Collections.sort(fruits); System.out.println(“Sorted list:”+fruits);   Collections.reverse(fruits); […]

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 […]

What is anagram in java language

What is an Anagram? An anagram is a word or phrase formed by rearranging the letters of another word or phrase, using all the original letters exactly once.   ✅ Example of Anagrams: “listen” → “silent”   “race” → “care”   “evil” → “vile”   “a gentleman” → “elegant man” (ignoring spaces and case)   […]

Solid principles in java language

Solid Principles:   Solid Principle is an acronym for five design principles that help in creating more maintainable, flexible and scalable software. These Five principles were introduced by Robert C. Martin   1) Single Responsibility Principle(SRP): A class should have only one reason to change, meaning it should have only one job or responsibility   […]

What is encapsulation in java

Encapsulation:[Bundling of fields[variables] and method inside a single class]   adv: It prevents outer classes from accessing and changing the fields of a class   getter & setter methods in java[POJO class]==>plain old java objects   gettermethod–>there must be a returntype other than void   class Bank { private int minimumbalance=2500;   public int getminimumBalance()//getter […]

What is Abstraction in java

Abstraction:   Data Abstraction is the process of hiding certain details and showing only the essential information to the user   Abstraction can be achieved either with abstract class or interface in java   Program abstract class Student { abstract void paperarrear();//abstract method   void colgatn()//non abstract method { System.out.println(“He will atn the cls regularly”); […]

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