Given a String variable word, write a String expression that parenthesizes the value of word. So, if word contains “sadly”, the value of the expression would be the String “(sadly)”
LANGUAGE: JAVA
CHALLENGE:
Given a String variable word, write a String expression that parenthesizes the value of word. So, if word contains “sadly”, the value of the expression would be the String “(sadly)”
SOLUTION:
"(" + word + ")"