Reverse words in a string: Difference between revisions

m
J: introduce some whitespace to help J novices with word recognition
m (J: introduce some whitespace to help J novices with word recognition)
Line 1,075:
</lang>
 
The verb phrase <code>( [: ; @ |. [: < ;. 1 ' ' , ])</code> reverses words in a string. The rest of the implementation has to do with defining the block of text we are working on, and applying this verb phrase to each line of that text.
 
=={{header|Java}}==
6,962

edits