Anonymous user
Compare length of two strings: Difference between revisions
m
→{{header|Java}}
Line 135:
}
}</lang>
{{output}}
<pre>"123456789" has 9 and is the longest string
"1234567" has 7 and is neither the longest nor the shortest string
"abcdef" has 6 and is neither the longest nor the shortest string
"abcd" has 4 and is the shortest string</pre>
=={{header|jq}}==
|