Reverse a String

In this article, we are going to discuss how we can reverse a string using code. for this tutorial, we are going to use java for reversing a string. in java, we can reverse a string in many ways by using the inbuilt function, by converting the string to a char array, adding each character … Read more

String in Java

In this article, we are going to learn about strings in java. A string is a sequence of characters, in java string is an object which represents a sequence of characters. An array of character works the same as a string. strings are immutable in java. In java every character is stored in 16-bits. char[] … Read more

Quick Sort

In this article we will discus about quick sort which is one of the sorting algorithm. The Quick sort algorithm uses divide and conquer strategy. First divide the unsorted array into multiple sub arrays and then recursively sort the sub-arrays and combine them to obtain a solution. The division of sub-arrays are based on pivot … 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

decimal to binary

In this article we are going to see how we can convert decimal to binary. We also write java code to convert decimal to binary. Decimal to Binary conversion:- For conversion of Decimal to Binary continuously divide the decimal number by 2 until decimal number become 0. and add every reminder after division at the … Read more