X1133: Set Contains - Contains Message

Write a method that will return a string indicating whether or not the double value is in doubleSet. For example if dSet contained {4.5, 3.2, 1.1}, then containsMessage(dSet, 1.1); would return: "Set does contain 1.1". Also, containsMessage(dSet, 0.34); would return: "Set does not contain 0.34".

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.