I do not know how to add hyphens and try and catch statement
java language
Please use the the language of your choice to complete the following problem:
Write a function or procedure that returns a hyphenated string. Valid input will be a string consisting only of alpha characters. Your function or procedure will return an alpha string where the interior letters are joined with a hyphen. For strings containing invalid input (non-alpha characters) please return an empty string ("" in most languages).
Please write a comment in your code to tell us the programming language you choose to use.
Example input:
Test
ou4
it
Example output:
T-e-s-t
i-t
13 years ago
5
Answer(2)![blurred-text]()
![]()
![blurred-text]()
![]()
Purchase the answer to view it

NOT RATED
- homework_completed.zip
Purchase the answer to view it

NOT RATED
- checkstring.java
Bids(1)
other Questions(10)
- . Tony's Beach T-Shirts has fixed annual operating costs of $75,000. Tony retails his T-shirts for $14.99 each and the variable cost per T-shirt is $4.99. Based on this information, the breakeven sales level in units is?
- 100% of what number is 74
- 1 3/7 * 2 3/10
- need help from geniusy_2006
- how long does columbus plan to spend on the island
- |8m-3|+1=14
- What was used as shelter by people long ago in Africa?
- using substitution, what is 3y+x=13 when y=4x
- An airplane is 850 feet and a submarine is neative 326 feet. What is the difference between the airplane and...
- Four candidates run for president of the student council. Three other candidates run for vice-president. In how many...