Write a java program to reverse a string using recursion. In this tutorial, I am going to explain how to write a java code which reverse an input string using recursion. I have also added the video at the end of this tutorial.
For example :
Input String: Object
Output String: tcejbO
Write a java program to reverse each words of a string. Suppose, If an input string is Java Programming then the output string should be avaJ gnimmargorP.
Write a java program to find first non-repeating character in a string. Given an input string, Write a java code to find first non-repeating character in a string.
For example –
i) Input string – java
Output – j (j is the first non-repeating character in a string)
ii) Input string – web rewrite
Output – b (b is the first non-repeating character in a string)
Write a anagram program in java or Java program to check anagram. In this programming question, we are going to write a java code to check whether two strings are anagrams of each other.
Let’s first understand what is an anagram? and how we are going to solve this problem.
What is an Anagram?
Two strings are said to be anagrams of each other if it contains the same characters, only the order of characters in both the strings is different. In other words, both strings must contain the same exact letters in the same exact frequency.
Write a C program to count number of words in a string. Given an input string, we have to write a c code to count number of words in a string. The words in a string are separated by space(‘ ‘).
How to remove spaces from string in PHP. In this tutorial i’ll explain how to remove spaces from string using regex as well as using in-built function in PHP.
If you know regex then it’s good otherwise you can refer my previous tutorial on Regular expression.