I wrote a java program that returns the values :(Hi,Hello,How,Are,You,Me,They,Them) as an array list.
我写了一个java程序,它返回值:(嗨,你好,如何,是,你,我,他们,他们)作为一个数组列表。
I wrote a simple controller that takes these values and displays it as json on localhost:8090/greeting as follows:
我写了一个简单的控制器,它接受这些值并在localhost:8090 / greeting上显示为json,如下所示:
["Hi","Hello","How","Are","You","Me","They", "Them"]
[“你好”,“你好”,“如何”,“是”,“你”,“我”,“他们”,“他们”]
I want to display these values in the following format on a web page:
我想在网页上以下列格式显示这些值:
喜欢这个
How do I achieve it?
我该如何实现?
1 个解决方案
#1
0
Use Java to iterate through the array and output the HTML tags for a table. For details on which tags to use, see https://www.w3schools.com/html/html_tables.asp
使用Java迭代数组并输出表的HTML标记。有关使用哪些标签的详细信息,请参阅https://www.w3schools.com/html/html_tables.asp
#1
0
Use Java to iterate through the array and output the HTML tags for a table. For details on which tags to use, see https://www.w3schools.com/html/html_tables.asp
使用Java迭代数组并输出表的HTML标记。有关使用哪些标签的详细信息,请参阅https://www.w3schools.com/html/html_tables.asp