/Java/Program in java. Get a string from user and also validate it’s length should be at least 1. Pass this string to a method that returns a new string with the first char added at the front and end, so "cat" yields "ccatc".
Program in java. Get a string from user and also validate it’s length should be at least 1. Pass this string to a method that returns a new string with the first char added at the front and end, so "cat" yields "ccatc".
Program in java. Get a string from user and also validate it’s length should be at least 1. Pass this string to a method that returns a new string with the first char added at the front and end, so "cat" yields "ccatc".
1
Program in java. Get a string from user and also validate it’s length should be at least 1. Pass this string to a method that returns a new string with the first char added at the front and end, so "cat" yields "ccatc".
0
- 3 votes369 views1 answer
- 106 votes409 views6 answers
- 0 vote313 views1 answer
- 0 vote316 views1 answer
- 0 vote328 views1 answer
- 0 vote323 views2 answers
- 1 vote307 views1 answer
- 21 votes321 views2 answers
- 0 vote304 views1 answer
- 1 vote390 views1 answer