Hi Ladies and Gents,
I'm trying to teach myself about sets from scratch and the uses of them and I have thought of a method that could be useful.
If I had a method called for example displayWordsInString() which takes a string argument called text.
Could I get this method to return a set consisting of words that are in the string referenced by the argument.
So myClass.displayWordsInString(" the train is late again ");
should print out an array:
the order of print out is not really that important to me!!
If there is a solution to this I could try out, it would really stretch my knowledge a bit , thanks again in advance to this great learning forum!!.