How to print an element of an array as string in Thymeleaf + Spring Boot

My problem was that the meetdate or meettime print as location in the memory not as String, I don't know how to convert them to String in the html view.

My bean

public class UserDetails {
    private String name;
    private String department;
    private final String [] meetdate1 = {"Monday", "Tuesday", "Wednesday", "Thursday","Friday"};
    private final String [] meetdate2 = {"Monday", "Tuesday", "Wednesday", "Thursday","Friday"};
    private final String [] meettime1 = {"Morning", "Lunch", "Afternoon"};
    private final String [] meettime2 = {"Morning", "Lunch", "Afternoon"};


My controller

    public String table(Model model, @ModelAttribute UserDetails user) {
        model.addAttribute("userList", da.getUserDetailsList());
        model.addAttribute("user", new UserDetails());
        return "/secure/table";

My addUserDetails and getUserDetailsList in DatabaseAccess

public void addUserDetails(UserDetails user) {
        MapSqlParameterSource namedParameters= new MapSqlParameterSource();
        String query="INSERT INTO userdetails(name, department, meetdate1, meettime1, meetdate2, meettime2) VALUES (:name,"+":department,"+":meetdate1,"+":meettime1,"+":meetdate2,"+":meettime2)";
        namedParameters.addValue("name", user.getName());
        namedParameters.addValue("department", user.getDepartment());
        namedParameters.addValue("meetdate1", user.getMeetdate1().toString());
        namedParameters.addValue("meettime1", user.getMeettime1().toString());
        namedParameters.addValue("meetdate2", user.getMeetdate2().toString());
        namedParameters.addValue("meettime2", user.getMeettime2().toString());
        jdbc.update(query, namedParameters);
public List<UserDetails> getUserDetailsList() {
        MapSqlParameterSource namedParameters= new MapSqlParameterSource();
        String query = "SELECT * FROM userdetails";
        return jdbc.query(query, namedParameters, new BeanPropertyRowMapper<UserDetails>(UserDetails.class));

My /secure/table html body

<tr th:each="u :${userList}">
            <td th:text="${}"> </td>
            <td th:text="${u.department}"> </td>
            <td th:text="${u.meetdate1}"> </td>
            <td th:text="${u.meettime1}"></td>
            <td th:text="${u.meetdate2}"> </td>
            <td th:text="${u.meettime2}"> </td>

My sql table creation, I tried to used ENUM or SET on the data type but Eclipse gave unknown data type error

CREATE TABLE userdetails (
  name              VARCHAR(80),
  department        VARCHAR(80),
  meetdate1         VARCHAR(80),
  meettime1         VARCHAR(80),
  meetdate2         VARCHAR(80),
  meettime2         VARCHAR(80)
How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum