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

how would you implement a thread pool? : Java thread

847


In how many ways we can create threads in java?

1138


how to create multithreaded program? Explain different ways of using thread? : Java thread

909


What is string builder in java?

954


How are multiple inheritances done in Java?

1093


What is the difference between JDBC 1.0 and JDBC 2.0?

3126


What is object data type?

948


When can an object reference be cast to an interface reference in java programming?

959


What is polymorphism and what are the types of it?

943


Write a program to print fibonacci series

1076


what do you mean by marker interface in java?

927


How do you check if a number is a perfect square?

942


What do you mean by Hash Map and Hash Table?

1025


What is super constructor?

948


What is the difference between procedural and object-oriented programs?

932