Write a java program to find first non-repeated character in a string. Given an input string, find it’s first non-repeated 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)
How to create a Foreign key in MySql. What’s the use of Foreign key constraint in a MySql. In this tutorial, You’ll learn about Foreign key constraint and it’s advantages.
Write a PHP code to check whether a number is palindrome or not. In this tutorial, we are going to write a PHP program to check whether an input number is palindrome or not.
Write a PHP script to swap two numbers. In this tutorial, we are going to write a code to swap two numbers in PHP.
There are multiple approaches by which you can swap two numbers.
i) We can swap two numbers using third or temp variable.
ii) We can swap two numbers without using third variable.