Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. http://ant73.com https://blog.csdn.net/metababy/article/details/58032460
Enabled new blog: http://ant73.com if necessary contact or other, please visit http://ant73.com
I tried a lot of ways, finalized, so simple and feasible.
The first step, this cell is set to "wrap"
the second step, the position in the input code needed to wrap "\ n"
starting http://anforen.com/wp/2017/02/how_to_use_code_in_excel_to_achieve_cell_return_line_change/
example: String result = "first line \ n second line";
is not very simple ah.