Skip to content

Latest commit

 

History

History
46 lines (27 loc) · 1.06 KB

README.md

File metadata and controls

46 lines (27 loc) · 1.06 KB

Christmas Tree

alt intro-gif

Introduction

This repo contains a simplified fork of Suren Atoyan's JavaScript Christmas Tree written in Java!

The source code is formatted in the shape of a Christmas Tree. During execution it

  • plays Jingle Bells
  • prints its own code line by line

alt demo

How to get it

It is enough to clone the repo:

git clone https://github.com/azzazzel/Java-Christmas-Tree.git

How to run it on a Unix/Linux based system

You need Java 11 or newer installed and properly configured. Make sure the ct file in Java-Christmas-Tree is executable. Then just

cd Java-Christmas-Tree/
./ct

How to run it on Windows

¯\_(ツ)_/¯

How it works

The ct file is a Java file even though it does not have the .java extension. You can execute it directly thanks to JEP 330: Launch Single-File Source-Code Programs and the "Shebang" support it provides.

License

MIT