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

Is stringwriter thread safe?

940


Explain java thread life cycle.

969


How are the elements of a gridbaglayout organized?

994


Is simpledateformat safe to use in the multithreaded program?

948


Should a main method be compulsorily declared in all java classes?

999


What is public static void main?

1041


what is the difference between a threads start() and run() methods? : Java thread

964


Explain about field hiding in java?

884


what is thread? : Java thread

935


What is java command?

1019


whatis Home interface and Remoteinterface? with example?

1948


How the interruptible method gets implemented?

915


What is codebase?

945


What is the full form of jpeg?

903


What is the full name of java?

1060