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

Why wait and notify methods are declared in object class?

1084


What is the purpose of the system class in java?

1097


Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.

2217


Can a constructor be made final?

1160


Similarity and difference between static block and static method ?

973


Can substring create new object?

1186


What is oops in java?

1068


Explain with example the concept of constant variable in java.

1261


What is the difference between heap and stack memory?

1246


Explain the difference between abstract classes and interfaces in java?

1264


What does singleton class mean?

1031


Is null a string in java?

1166


What is the transient keyword?

2346


What is the difference between Grid and Gridbaglayout?

1337


How do you generate random numbers in java?

1065