排序
String,Wrapper Class,Stringbuffer,String split()
String,Wrapper Class,Stringbuffer,String split(),String: Strings are used for storing text. A String variable contains a collection of characters surrounded by double quotes. Strin...
Object Class in Java
Object Class in Java,Object Class in Java Object class in Java is present in java.lang package. Every class in Java is directly or indirectly derived from the Object class. If a cl...
matrix multipilication,matrix addision
matrix multipilication,matrix addision,matrix multipilication: package afterfeb13; public class matrixmulti { public static void main(String[] args) { int[][] a = { { 1, 3, 5 }, { ...
Multidimensional array–matrix
Multidimensional array--matrix,Gross matrix:X package afterfeb13; public class multidimarray { public static void main(String[] args) { int[][] mark = { { 10, 20, 80 }, { 40, 50, 6...
Missing number,Reverse Number,subarray with a given sum
Missing number,Reverse Number,subarray with a given sum,Missing number: package afterfeb13; public class missingnum { public static void main(String[] args) { int[] arr = { 10, 20,...
majority element(Moore’s Voting Algorithm)
majority element(Moore’s Voting Algorithm),Given an array arr. Find the majority element in the array. If no majority exists, return -1. A majority element in an array is an eleme...
Why I Started Blogging About Full-Stack Java Development
Why I Started Blogging About Full-Stack Java Development,Hello Dev.to! I’m Manar Jebali, a Software Engineering Student currently diving deep into the world of Full-Stack Java Dev...
count of letter
count of letter,1) Frequency of Each letter in a given String(key != '*') 2) Non-repeated char. in a given String(count==1) 3) Repeated Char. in a given String(count>1) 4) First...
Java Full Stack Developer Roadmap for Beginners
Java Full Stack Developer Roadmap for Beginners,Java remains one of the most prominent programming languages, ranking 4th in the TIOBE Index for 2024 and 2nd globally and in India ...
binary search,linear search
binary search,linear search,Java Program for Linear Search In the world of computer science, searching algorithms are fundamental techniques for retrieving information from data st...
Bubble Sort,Selection Sort
Bubble Sort,Selection Sort,Bubble Sort Algorithm Bubble Sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in the wrong orde...
swapping in array
swapping in array,Java Program to Swap Two Numbers Problem Statement: Given two integers m and n. The goal is simply to swap their values in the memory block and write the java cod...