Where people come together to learn, code, and play. Custom-built HTTP server, site generator, and website from scratch using no external libraries. Goal is to be as minimalistic and fun as possible. http://projectdivar.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
SigPlace/sampleCode

9 lines
706 B

<pre>
<span class="variable">System</span>.<span class="variable">out</span>.<span class="function">println</span>(<span class="string">"Building directory listings..."</span>);
<span class="keyword">try</span> {
<span class="function">buildDirectoryListings()</span>;
} <span class="keyword">catch</span> (<span class="class">IOException</span> <span class="variable">e</span>) {
<span class="variable">e.</span><span class="function">printStackTrace()</span>;
<span class="variable">System</span>.<span class="variable">err</span>.<span class="function">println</span>(<span class="string">Failed to build directory listings!"</span>);
<span class="keyword">return</span>;
}</pre>