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 difference between yielding and sleeping? : Java thread
How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?
What do you mean by Function Overloading in java?
What are advantages and disadvantages of OOPs?
Can we convert integer to string in java?
give an example for encapsulation?
What is <> used for in java?
What is formatted output in java?
What are void methods?
Why are functions called methods in java?
what state does a thread enter when it terminates its processing? : Java thread
what is singleton in java?
What is string length in java?
Which collection is best for sorting in java?
What is difference between Heap and Stack Memory?