Answer Posted / vikas
1. Split the String into a String array.
2. Iterate over the String Array and add values into a Set(Duplicate values are not allowed).
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of stub and skeleton?
What is scope & storage allocation of global and extern variables? Explain with an example
When does a class need a virtual destructor?
What is difference between class and object in java?
Using callable statement how can you pass out parameters, explain with example?
Can a class be private or protected in java?
What is a numeric string?
What are the 4 types of research methods?
what do you understand by synchronization? Or what is synchronization and why is it important? Or describe synchronization in respect to multithreading? Or what is synchronization? : Java thread
When is the finalize() called?
Is array serializable java?
Is list thread safe in java?
How to check if a list is sorted in java?
How do you check if two strings are equal in java?
Can we override protected method in java?