for (int i = 0; i < transformers.length; i++) {
int[] clonedBoard = board.clone();
transformers[i].transform(clonedBoard);
for (int j = 0; j < clonedBoard.length; j++) {
for (int k = 0; k < clonedBoard[j].length; k++) {
System.out.print(clonedBoard[j][k] + " ");
}
System.out.println();
}
System.out.println();
}
public interface VideoRepository extends CrudRepository<Video, Integer> {
}
@Controller
public class HomeController {
@Autowired
private final VideoRepository videoRepository;
@GetMapping("/tutorials")
public String tutorials(Model model) {
model.add("videos", videoRepository.findAll());
return "tutorials";
}
}
<div class="video-container">
<div class="video-item" th:each="video: ${videos}">
<iframe th:src="${video.url}"
frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
<h3 th:text="${video.title}"></h3>
</div>
</div>
Timestamp stamp = new Timestamp(1593864000000L); // 07.04.2020 12:00 UTC
System.out.println(stamp.toString()); // 2020-07-04 15:00:00 (Moscow UTC+3)
System.out.println(stamp.getTime() == 1593864000000L); // true