Function Overloading on String (ICSE 2015 Question)

Design a class to overload a function Joystring() as follows: (i) void Joystring (String s, char ch1, char ch2) with one string argument and two character arguments that replaces the character argument ch1 with the character argument ch2 in the given string s and prints the new string. Example: Input value of s =”TECHNALAGY” ch1=’A’, …

Function Overloading on String (ICSE 2015 Question) Read More »

Unique String

A String is said to be ‘Unique’ if none of the alphabets resent in the string are repeated.  Write a program to accept a string and check whether the string is Unique or not.   Example :- Input: COMPUTER Output:Unique String Input: APPLICATIONS Output: Not a Unique String