Insertion Sort

In this artcle we are going to learn about insertion sort algorithm and insertion sort implementation in java. Insertion sort:- In insertion sort the array is divided into two parts first part is sorted and second part is unsorted. To start with sorted array will have only first element in sorted array and the all … Read more

Array Sorting

In this article, we are going to discuss about array sorting and diffrent ways to sort an array and there implementation. What is Array Sorting:- Sorting means arranging items either in ascending order or descending order. Arranging an array’s elements either in ascending order or descending order is known as array sorting. We can sort … Read more

find one extra character in string

In this article, we are going to find one extra character in given two strings. Problem:- we have two strings s1 and s2 of length n and n+1. we need to find that one extra character in string s2 that is not present in string s1. Java code to find one extra character in given … Read more

Data Types in Java

In this article we are going to discuss about data types in java. data type is set of possible values and set of allowed operation on it. it specify different sizes and vales that can be stored in a variable. There are two type of data types in java:- Primitive data types in java:- In … Read more

identifiers in java

In this article, we are going to discuss about identifiers. Identifiers are the names given to variables, methods/functions, classes, interfaces. For example:- int number=1231; String str=”identifiers in java”; In the above example “number” and “str” are the identifiers. Rules for identifiers in java:- There are some rules for declaring identifiers in java. if identifiers are … Read more

keywords in java

In this article, we are going to discuss about keywords in java. Keywords are predefine words in programing language. we cannot use these keywords as variable names because they are already predefined. Java keywords:- These are some java keywords written below. You cannot use these keywords as a identifiers in your programs. goto keyword is … Read more

what is java ?

In this article, we are going to discuss the advantages of java what is java? uses of java advantage of java disadvantage of java etc. History of java:- java is one of the famous programming languages. it was developed by “James Gosling” in 1995 at sun microsystems. The development of java starts in 1991. This … Read more

Digits after decimal

In this article, we are going to find digits after decimals in given number. for this, we will write a java code. Example:- if n=145.258, then the output will be 258. Steps:- Java code to find digits after decimal numbers:- Output:- The same logic can be used to find digits after decimals in other programming … Read more

binary to decimal

In this article, we are going to see how we can convert binary to decimal. We also write java code to convert binary to decimal. Binary to Decimal conversion:- Steps:- Java code to convert binary to decimal:- Output:- The same logic can be used to convert binary to decimal in other programing languages like C, … Read more