Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

aabccdee
Find the used alphabets as abcde ?

Answer Posted / adarsh

Scanner sc=new Scanner(system.in);
Int i,j=0;
String S1=sc.next(),s2;
S2=s1charAt(0);
For(i=1;i<s1.length;i++)
{
If(s2.charAt(j).equals (s1.charAt(i))
Continue;
Else{
S2=s2.concat(s1.charAt(i));
j++;
}
}
Sop(j);
}


I m writing with my mobile phone so chuck the mistakes like upercase nd lowr case...

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?

8200


Explain the advantages of packages in java?

973


Can keyword be used as identifier?

1017


How we can make copy of a java object?

1152


What are the ways to instantiate the class class?

1150


How many types of flags are there?

1062


What does function identity () do?

1025


What is the java project architecture?

2294


How to declare an arraylist in java?

1193


What is a instance variable?

1136


when you will synchronize a piece of your code? : Java thread

1074


What is Java Shutdown Hook?

1266


What is a subsequence of a string?

1121


Where can i get Latest SUN Certification Dumps and what are the Sun Certification Codes that are available, Im new to JAVA, so please gimme info as i need to write J2EE - Core Java Certification

1942


Can a abstract class be defined without any abstract methods?

1063