The Wayback Machine - https://web.archive.org/web/20200905090345/https://github.com/BurhanH/java-samples
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

README.md

java-samples

GitHub Build Status Codacy Badge HitCount

Main purpose

The idea is show my knowledge and an ability write Java code. Plus enhance coding skills.

How it works

I write a simple algorithm on Java by adding one realization. Definitely, before writing actual code, I prepare a unit test for it. Then I push the code as PR into the main repository. And after some time (approximately 2-4 minutes) checking results. I mean check Travis CI (Are there errors?), check Codacity (Does my PR up to coding standards?). If there are no errors I merge the PR into the master branch and those changes become a part of the main repository. If there are errors I make new commit into the PR to fix errors. Then I repeat a process from step 4 (sentence 4 of this paragraph) until changes will be merged with the master branch.

Table of content

  1. Primitive types class
  2. Counter class, demo, 6 unit tests
  3. FindMax class, demo, 6 unit tests
  4. FindMin class, demo, 4 unit tests
  5. FindSecondMax class, demo, 4 unit tests
  6. ReverseArray class, demo, 2 unit tests
  7. IsPalindrome class, demo, 5 unit tests
  8. Fibonacci class (recursion), demo, 3 unit tests - (not optimal for big integer numbers and slow)
  9. FibonacciMemo class (recursion & memoization), demo, 3 unit tests - (optimal for huge integer numbers and fast!)
  10. Page class, DuckDuckGoPage class, DuckDuckGoResultPage class, one functional UI test - (JUnit, Selenium, Firefox)
  11. Conditions class, demo, 5 unit tests
  12. Coin class, demo, 1 unit test
  13. Dice class, demo, 1 unit test

About

Java code samples

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.