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
extending thread class or implementing runnable interface. Which is better? : Java thread
What are the types of sockets in java?
Is treeset sorted in java?
What are the benefits of operations in java?
How do you classify Dialog Box?
Name the components that are termed to be Heavy-weight component but available in Light-weight components?
Can you pass by reference in java?
What are the advantages of exception handling in java?
What will be the default values of all the elements of an array defined as an instance variable?
Who is the owner of java?
What is a boolean field?
What is the indent key?
What is an immutable object? How do you create one in java?
How to check if linked list contains loop in java?
When should I use singleton?