Posty

Kotlin - First use - Factorial

Everyone proggramer has favorite first program, me too -> factorial in two version: https://github.com/mikoxp/kotlin_learn/commit/8b8909f30775af4d67db58bddd49a6057e6ab3b2 I think that kotlin is more similar  to java, but the idea of parameters more free. I'm not complaining. Always something new.

Kotlin- simple Java

Obraz
I started to learn Kotlin. And ... This is simple Java- said It is used in Android- said Reminds me... Combo Python and JavaSript. - Not need semicolon and val(var) but It has strong type - This is good. Example simple code: fun main (args : Array<String>) { println ( "Hello, world!" ) val a: Int = 10000 val d: Double = 100.00 val f: Float = 100.00f val l: Long = 1000000004 val s: Short = 10 val b: Byte = 1 println ( "Your Int Value is " +a) println ( "Your Double Value is " +d) println ( "Your Float Value is " +f) println ( "Your Long Value is " +l) println ( "Your Short Value is " +s) println ( "Your Byte Value is " +b) }

Return

I going to writting posts. If  my posts help you, I be happy, but not is Ok. I do not care. For me This is my way to self-improvement.

Java think: extends method

Obraz
I ask yourself : I overide method  'X' and use method 'Y' which use 'X'. What I use old 'X' or new 'X'. I check this problem. My result ( class B extends A) : Source code

Java Recipes : Sorting object

Easy it`s sorting Strings or Integers or Double or Chars (I know there is not often sytuation it happens). When We have object must think and choose field to sort ( with hierarchy of values). In java I find to implementation this problem: 1) all objects 2) choosen one field How use with what`s problem I don`t know. GITHUB LINK:  https://github.com/mikoxp/javaRecipes/tree/master/sort_object/src

Julia Collection

Obraz
"O Romeo, Romeo, wherefore art thou Romeo? Deny thy father and refuse thy name; Or if thou wilt not, be but sworn my love And I'll no longer be a Capulet." This fragment is pretty, but I dont write today about poetry. I want show fractals.Math information about this topic everyone can read about Wikipedia for example. https://en.wikipedia.org/wiki/Julia_set My friend show me this fractals and I want writting implementation. My first code was not good. It have two colors: Black and Blue  (I like blue). Today I presents good implementation   →→It have all colors :) GITHUB CODE https://github.com/mikoxp/-julia_collection/tree/master/src