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 / deepu

package com.thread;
import java.util.*;
public class Test2 {





public static void main(String[] args) {
String str="aabbbcdabbheaa";
char[]chs=str.toCharArray();
List l1=new ArrayList();

for(Character ch:chs){
l1.add(ch);
 
}
Set s1=new TreeSet(l1);
System.out.println(s1);
}




}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does java allow overriding static methods ?

1112


What is the difference between JDBC 1.0 and JDBC 2.0?

3186


What the difference is between execute, execute Query, execute Update?

835


Write a java program to print fibonacci series?

955


What are filterstreams?

1076


Can subclass overriding method declare an exception if parent class method doesn't throw an exception?

1079


What is the static variable?

1122


How do I convert a string to an int in java?

1073


What is the purpose of the finalize() method?

1246


Explain the JDB in depth & command line.

1016


What is the difference between static method and instance method in Java?

1208


What is the use of string and stringbuffer?

982


what is object slice?

2084


What’s the difference between the methods sleep() and wait()?

1012


I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com

1701