<h1 id="java-notes">Java Notes</h1>
<p>Java is <strong>statically typed</strong> and <em>object-oriented</em>. It runs on the <code>JVM</code> &amp; is <del>slow</del> fast.</p>
<h2 id="getting-started">Getting Started</h2>
<ol>
  <li>Install a JDK</li>
  <li>Write <code>Main.java</code></li>
  <li>Run <code>java Main.java</code></li>
</ol>
<ul>
  <li>Use <strong>records</strong> for data</li>
  <li>Read the <a href="https://docs.oracle.com/en/java/">official docs</a></li>
  <li>Never click <a href="#">this</a></li>
</ul>
<h2 id="example">Example</h2>
<pre><code class="language-java">if (a &lt; b &amp;&amp; list.size() &gt; 0) {
    System.out.println(&quot;&lt;done&gt;&quot;);
}
</code></pre>
<blockquote>
  <p>Tip: <code>var</code> is not dynamic typing.</p>
  <p>It infers a <strong>static</strong> type.</p>
</blockquote>
<hr>
<h2 id="example-2">Example</h2>
<ul>
  <li><input type="checkbox" disabled checked> Learn classes</li>
  <li><input type="checkbox" disabled> Learn streams</li>
</ul>
<p><img src="images/java.png" alt="logo"> Paragraph after an image with 2 * 3 = 6 and a_b_c.</p>
<!-- table of contents
  Java Notes  (#java-notes)
    Getting Started  (#getting-started)
    Example  (#example)
    Example  (#example-2)
  34 Markdown lines -> 29 HTML lines (17 starting with a tag)
-->
