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
It is enough to clone the repo:
git clone https://github.com/azzazzel/Java-Christmas-Tree.git
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
¯\_(ツ)_/¯
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.
MIT