Sep 13
Frequently Asked Java Program 21: Java Program to Find & Print All Special Characters with Their Positions in a String
This programming interview question was asked in Yodlee. Problem: Write a Java program to find and print all special characters with their positions in a user input string. Example: Input string: Make%Selenium$Easy# Output: % at position 5. $ at position 14. # at position 19. Total special characters found:3 Solution: We will use regex to […]