How To Count Repeated Words in a String in Java
Hello Friends, Today in this tutorial we will learn ‘How to count Repeated Words in a string’ Using help of HashMap class which is part of Map interface. It stores the object in key and …
Hello Friends, Today in this tutorial we will learn ‘How to count Repeated Words in a string’ Using help of HashMap class which is part of Map interface. It stores the object in key and …
Hello, In this post we will see Program to find duplicate characters in a string in Java, find duplicate characters in a string java without using hashmap, program to remove duplicate characters in a string …
In this post we will see different methods of generate random number and String in Java. Generate Random Number in java Logic 1- Using Random class package demopkg; import java.util.Random; public class GenRandomNumber { public …
In this Post, we will learn different ways to reverse a number in java. This is frequently asked question in automation testing interviews. Logic 1: Reverse a Number in java using while loop package demopkg; …
In this tutorial, we will see different ways of swap two numbers in Java. We will also see how to swap two numbers without using third variable. Logic 1: Using third variable package demopkg; public …
In this post, we will learn How to reverse a string in java using different methods. String is a sequence of characters which behave like an object in java. There are different ways to reverse …
In this post, we will see how to do sorting ascending and descending using Bubble sort algorithm. What is Bubble sort in Java? Bubble sort is a sorting algorithm to sort the data in ascending …
In this post we will learn fibonacci series in java, fibonacci series program in java using recursion and using all other methods. What is Fibonacci Series In Java? In Fibonacci series, the next number is …
In this post, we will learn Java program to check if String contains digits. Here I will discuss two methods to find the numeric in a string. Using regular expression Using isDigit() method Java Program …
In this tutorial, we will learn what is char array, How to convert char to string, How to convert char to int and String to char using different methods. Let’s get started- What is character …