import java.util.*;
class isogram
{
public static void main()
{
Scanner ayush=new Scanner (System.in);
System.out.println("Enter a string");
String s=ayush.nextLine();
s=s.toUpperCase();String w="";String s1="";char ch1,ch2;int f=0;
s=s+' ' ;
int l=s.length();
for(int i=0;i<l;i++)
{
char ch=s.charAt(i);
if(ch==' ')
{
for(int j=0;j<w.length();j++)
{ch1=w.charAt(j);
for(int k=j+1;k<w.length();k++)
{ch2=w.charAt(k);
if(ch1==ch2)
f++;}
if(f>0)
continue;
else
s1=s1+w+" ";
}}
else
w=w+ch;
w="";}
System.out.println("the stirng after manipulationm"+s1);}}
can u guys helps me with his program it is the answer to rikhil question
i m not getting any syntax error but still no output |
|
| asked by Ayush Agarwal (qwertyuiop12345678901234567890) 7 years ago | |
4 | |
Other Questions on This Topic
Chhod aaye the kinara kabhi apni talash mein, Par dil ki gehrayi se ek aisi aawaz aayi, Ki lautna pada hamein isi mod ki talash mein. |
|
| asked by Nisarg Bhavsar (nisarg71) 130 days ago | |
2 | |
Bengali grammar icse question paper can I get? |
|
| asked by Debosmita Malik (debosmitamalik) 185 days ago | |
1 | |
I wish to download question papers for ICSE prelims and I cannot do that. Can you provide the details of the Customer support for Respaper to get in touch with regarding the issue mentioned above. |
|
| asked by S.Hemalata Rajaram (hema1877) 288 days ago | |
1 | |

