Unique String in Java ( Program ) | ICSE ISC Computer

preview_player
Показать описание
A String is said to be 'Unique' if none of the letters present 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(or simply print "yes")

Input: APPLICATIONS
Output: Not a Unique String

**************************************************

You can follow us here,

****************************************************

Join our youtube family, lets grow together!
Subscribe to Amplify Learning

#AmplifyLearning #Computer
Рекомендации по теме
Комментарии
Автор

I am one of those legends who are watching this video before 1 night of exam

HIMANSHUSINGH-zzit
Автор

Sir you are explaining too good tomorrow is my board exam and I have understood this program thank you sir ☺️

Anjanirastogi
Автор

Write a program to accept a sentence and print all the unique words present in the string.
If none of the characters present in the string are repeated, then it is called a Unique String.
Sample Input: KOLKATA IS THE CAPITAL OF WEST BENGAL
Sample Output: IS THE OF WEST BENGAL

disha
Автор

Sir agar string mein They are students likh ke de to kaise kare yahi hoga ya dusra kuchh

AYUSHGAMING
Автор

Thank you so much sir for such a good explanation 💖

roopaagrawal
Автор

Sir ye questions index of aur last index se ho jayega kya???

scammeryt
Автор

Sir u made it so easy to learn and loved ur teaching style along with explaining u showed output

anuskabanerjee
Автор

Sir if it is in uppercase then can we not use ASCII value for loop conditions instead of l-1 ?

charitrabora
Автор

import java.util.*;
public class unique_string
{
public static void main()
{
Scanner sc=new Scanner(System.in);
String
char pc=s.charAt(0);
int c=0;
for(int i=1;i<s.length();i++)
{
if(pc==s.charAt(i))
{
c++;
pc=s.charAt(i);
}
else
{
pc=s.charAt(i);
}
}
if(c>0)
{
System.out.println("Not AN UNIQUE String");
}
else
{
System.out.println("UNIQUE String");
}
}
}

AbhiSingh-bu
Автор

using this method if we input word 'mom' it is not working...

sweetnsour
Автор

Hello Sir
Please Explain this question
A string is given as:
Purity of Mind is Essential

Write a program in Java to enter the string. Count and display:

The character with lowest ASCII code in lower case
The character with highest ASCII code in lower case
The character with lowest ASCII code in upper case
The character with highest ASCII code in upper case
Sample Output:

The character with lowest ASCII code in lower case: a
The character with highest ASCII code in lower case: y
The character with lowest ASCII code in upper case: E
The character with highest ASCII code in upper case: P

karayatAj
Автор

sir is program me jo ap countr value le rahe hai uski jagaha ham if ke niche hi Sopln nahi lih sakte hai

matheswallahbyaryanbaranwa
Автор

Sir binary to decimal and decimal to binary conversion wali program bata doh please

saurabhchamoli
Автор

i needed unique number but ill figure something out

sudutheeng
Автор

Sir please program ka dry run de digiye pleaseee

rajadityagamer
Автор

Please so the organic chemistry video sir

thorgamer
Автор

Can u post a video on the solved prgms of computer understanding book of string chapter

sudipdutta
visit shbcf.ru