This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.out.println("JVM VERSION: " + System.getProperty("java.vm.version")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(.toUpperCase "clojure with java") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String s = "clojure with java"; | |
System.out.println(s.toUpperCase()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(.format (SimpleDateFormat. "MM/dd/yyyy") (Date.)) ;; result: "08/19/2017" | |
(.format sdf (Date.)) ;; result: "08/19/2017" | |
(.format (SimpleDateFormat. "MM/dd/yyyy") date) ;; result: "08/19/2017" | |
(.format sdf date) ;; result: "08/19/2017" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(.format (SimpleDateFormat. "MM/dd/yyyy") (Date.)) | |
(.format sdf (Date.)) | |
(.format (SimpleDateFormat. "MM/dd/yyyy") date) | |
(.format sdf date) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(def date (Date.)) | |
(def sdf (SimpleDateFormat. "MM/dd/yyyy")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(:import | |
java.util.Date | |
java.text.SimpleDateFormat) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Date; | |
import java.util.Calendar; | |
import java.util.GregorianCalendar; | |
import java.text.SimpleDateFormat; | |
public class Example{ | |
public static void main(String args[]){ | |
SimpleDateFormat sdf = new SimpleDateFormat("dd/M/yyyy"); | |
String date = sdf.format(new Date()); | |
System.out.println(date); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<li class="nav-item"> | |
<a href="{{selvlet-context}}/hello" | |
class="nav-link{% ifequal page "hello.html" %} active{%endifequal%}"> | |
hello | |
</a> | |
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "base.html" %} | |
{% block content %} | |
<div class="row"> | |
<h1>HELLO WEBAPP CLOJURE</h1> | |
</div> | |
{% endblock %} |