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 example programs for practicing

Missing Attendance roll number: Given roll numbers from 1 to N,one is missing. Find the missing number   int rolls[]={1,2,3,5}   output: Missing number=4   —————————————————————————— 2)Find Duplicate ID: In an employee array, one ID is duplicated. Find that duplicate   int empIDs={101, 103, 104, 101, 105}   output: Duplicate: 101   class DuplicateID { […]

Java practice questions for learning

import java.util.*;   class ASC { public static void main(String args[]) { Scanner s=new Scanner(System.in); int amount;   while(true) { System.out.println(“enter the amount to withdraw”);//2300 amount=s.nextInt();//2300   if(amount==0) { System.out.println(“exiting…”); break; }   if(amount%100!=0)2300%100==>00!=0 { System.out.println(“Invalid amount…”); }     int a=amount/2000; amount=amount%2000;   int b=amount/500; amount=amount%500;   int c=amount/100; amount=amount%100;   if(a>0) System.out.println(a+”x2000″); if(b>0) […]

Solid principles in java language

)Open/Closed Principle(OCP) Software entities should be open for extension but closed for modification. This allows adding new function without altering existing code.     class AreaCalculator { public double calculateArea(String shape,double radius,double length,double breadth) { if(shape.equals(“circle”)) { return Math.PI*radius*radius; } else if(shape.equals(“rectangle”)) { return length*breadth; } } class OCPviolation { public static void main(String args[]) […]

Remove the specific number in java

Remove the specific number from the given input   i/p:1200   number to remove:2   output: 100     class Remove { public static void main(String args[]) { int n=1200,r=2,a,s=0,b=1;   while(n!=0)//1 { a=n%10;//a=1 if(a!=r)//1!=2(t) { s=s+b*a;//0+100*1–>s=100 b=b*10;//b=1000 } n=n/10;//0 } System.out.println(s);//100 } } ✅ Java Program: Remove a Specific Digit from Input import java.util.Scanner; […]

Simple Banking Application using java

    /*Project: Simple Banking Application:   Simple Banking Application is a simple Java project   Abstract: In this modernized world, where time is money, everyone has got the habit of doing their tasks online. Within a click, a task is done. You get this application to make transactions just by sitting in your comfort […]

Linear search in java program

Here is a simple Java program to perform Linear Search on an array:   ✅ Linear Search Example in import java.util.Scanner;   public class LinearSearch { public static void main(String[] args) { Scanner sc = new Scanner(System.in);   // Input array size System.out.print(“Enter the number of elements: “); int n = sc.nextInt();   int[] arr […]

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