Update continents.html

This commit is contained in:
jabyte 2018-05-10 13:13:58 +01:00 committed by GitHub
parent 300d6000db
commit 26521fb2ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,48 +1,48 @@
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"> <html xmlns:th="http://www.thymeleaf.org">
<head> <head>
<title>Arrays in Thymeleaf</title> <title>Arrays in Thymeleaf</title>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head> </head>
<body> <body>
<h3>THE CONTINENTS</h3> <h3>THE CONTINENTS</h3>
<p> <p>
We have a total of <span th:text="${continents.length}"></span> We have a total of <span th:text="${continents.length}"></span>
continents in this world. Following is a list showing their order continents in this world. Following is a list showing their order
based on the number of population in each of them. based on the number of population in each of them.
</p> </p>
<ol> <ol>
<li th:text="${continents[2]}"></li> <li th:text="${continents[2]}"></li>
<li th:text="${continents[0]}"></li> <li th:text="${continents[0]}"></li>
<li th:text="${continents[4]}"></li> <li th:text="${continents[4]}"></li>
<li th:text="${continents[5]}"></li> <li th:text="${continents[5]}"></li>
<li th:text="${continents[6]}"></li> <li th:text="${continents[6]}"></li>
<li th:text="${continents[3]}"></li> <li th:text="${continents[3]}"></li>
<li th:text="${continents[1]}"></li> <li th:text="${continents[1]}"></li>
</ol> </ol>
<ul th:each="continent : ${continents}"> <ul th:each="continent : ${continents}">
<li th:text="${continent}"></li> <li th:text="${continent}"></li>
</ul> </ul>
<h4 th:each="continent : ${continents}" th:text="${continent}"></h4> <h4 th:each="continent : ${continents}" th:text="${continent}"></h4>
<p> <p>
The greatest <span th:text="${#arrays.length(continents)}"></span> The greatest <span th:text="${#arrays.length(continents)}"></span>
continents. continents.
</p> </p>
<p> <p>
Europe is a continent: <span Europe is a continent: <span
th:text="${#arrays.contains(continents, 'Europe')}"></span>. th:text="${#arrays.contains(continents, 'Europe')}"></span>.
</p> </p>
<p> <p>
Array of continents is empty <span Array of continents is empty <span
th:text="${#arrays.isEmpty(continents)}"></span>. th:text="${#arrays.isEmpty(continents)}"></span>.
</p> </p>
</body> </body>
</html </html