Skip to content

Singing Christmas Tree, implemented in Java.

License

Notifications You must be signed in to change notification settings

azzazzel/Java-Christmas-Tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Singing Christmas Tree, implemented in Java.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published