Interview Question based on String

/*Java Program to count vowels and consonants in String*/

package com.string;

/*How to check if two String are Anagram in Java
if they contains same characters but on different order e.g. army and mary, stop and pots etc. Anagrams*/
package com.string;

How to reverse String in Java using

FindDuplicateCharacters

/*Write a Java program to find the first non-repeated character in a String*/

String containing first letter of every word in a given string with spaces
input-”String containing first letter o” — — output is : Scflo

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store