FEATURED COURSE
Getting Started With Java for Beginner
If you’re a beginner and want to Learn Java then this course is for You.
- Fundamental
- Multithreading
- Object-Oriented
- +8 More Lessons
Recent Posts
In this post, we’re going to see how we can validate JWT Token using a public key and RSA256 Algorithm.
I’ll demonstrate this with Java & …
A queue is a linear data structure that follows an order i.e FIFO(First In First Out), where the element which is inserted at the first …
Stack is a linear data structure that follows an order i.e LIFO(Last In First Out), where the element which is inserted at the last will …
In this example, we’ll check if String is Palindrome or not.
Palindrome: A sequence of characters that reads the same backward as forward.
Input:
String a = “RADAR”;
Output:
true
1. …
In this example, we’ll check if two strings are anagrams of each other.
Input:
String a = “Listen”;
String b = “Silent”;
Output:
true
A string is said to be an …
In this example, we’ll find how to reverse words in a string
Input:
String word = “hello world”;
Output:
world hello
1. Java
public class ReverseWordsInString {
public static void main(String[] args) …
In this example, we’ll see how to merge two strings alternatively:
Input:
String a = “aaa”;
String b = “bbb”;
Output:
ababab
1. Java
public class MergeTwoStringsAlternatively {
public …
In this example, we’ll find the first non-repeating character of string:
Input:
String s = “HHello”;
Output:
First non repeat character = e
1. Java
public class FirstNonRepeatingCharacterOfString {
…