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 practice programs to create student details form

Create a student class with name, roll number. Use a constructor to initialize and display the student details     class Student { String name; int rollNo;   Student(String name,int rollNo) { this.name=name; this.rollNo=rollNo; }   void display() { System.out.println(name); System.out.println(rollNo); } } class Main { public static void main(String args[]) { Student s1=new Student(“John”,101); […]

Java practice programs with example

    Question 2 : Reverse Prefix of Word(Using Stack)   Given a 0-indexed string word and a character ch, reverse the segment of word that starts at index 0 and ends at the index of the first occurrence of ch (inclusive). If the character ch does not exist in word, do nothing.   For […]

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); }}

Linear search in java program

linear search==>checking each element one by one in an array until we finding the target value   arr[]={1,2,3,…….100};   target value=3   class Linear { public static void main(String args[]) { int arr[]={1,2,3,4,5,6,7,8,9,10};   int key=11;   boolean yes=false;   for(int i=0;i<=10;i++) { if(arr[i]==key) { System.out.println(“element found at=”+(i+1)); yes=true; break; } }   if(!true) System.out.println(“element […]

Java programming with a Printing a line text

To print a line of text in Java, you can use the System.out.println() statement. ✅ Example: java CopyEdit public class HelloWorld { public static void main(String[] args) { System.out.println(“Hello, this is a printed line in Java!”); } } 🔍 Explanation: System: A built-in class in Java. out: A static member of System, representing the output […]

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