Skip to content
App examples written in Java.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
1-hello
2-fibonacci
3-fibonacci_index
LICENSE
README.md

README.md

practice_java

This public repository contains a small collection of Java-applications that I wrote as practice and reference. This repository currently contains following applications.

1-hello

The simplest of runnable Java-applications, Hello World. Demonstrates the bare minimum application structure.

2-fibonacci

This application calculates the first 20 Fibonacci numbers. Simple uses of variables, for-loops and if-structures. There are two alternative implementations.

  • Fibonacci.java - a straightforward, yet a bit more complex solution without recursive method.
  • FibonacciRecursion.java - a simpler solution that uses a recursive method.

3-fibonacci_index

This application calculates F(_n_) for the given value of n, when n ≥ 0. In other words, F(6) equals 8 as it is the 8th number in the sequence. The application also demonstrates how to read user input from command line parameter with rudimentary input validations.

You can’t perform that action at this time.