Dan Iftodi
  • About

Kotlin

Kotlin Basics

24 ianuarie 202023 ianuarie 2020 Dan Iftodi Leave a comment Engineering, Kotlin

The Unit return type declaration is optional for functions. The following codes are equivalent. Single-Expression functions:When a function returns a single expression, the curly braces can be omitted and the body is specified after = symbol fun sum(a : Int, b : Int) : Int = a + b Explicitly declaring the return type is […]

Continue reading


Kotlin Intro

23 ianuarie 202023 ianuarie 2020 Dan Iftodi Leave a comment Engineering, Kotlin

Hello World Kotlin programs start at the main function. Here is an example of a simple Kotlin “Hello World” program: When compiled this code will be compiled into a file named after file name + ‘Kt’, if your file was named Main.kt, the compiled code will be in a file name MainKt. In the above […]

Continue reading


Categorii

  • Engineering (35)
    • Architecture (3)
    • Debugging Techniques (3)
    • Effective Java (19)
      • Classes and Interfaces (4)
      • Creating and destroying objects (7)
      • Methods Common to All Objects (5)
    • Kotlin (2)
    • MySQL (1)
    • Spring (1)
    • Talks (2)
  • General (76)
  • IT (65)
    • AVR (5)
    • Patterns (5)
    • Programare (35)
  • Stiinta (4)
  • Timp Liber (21)
  • UTM (28)
  • Video (10)
Search for:
AtlantaSoft - all rights reserved. Theme by Colorlib Powered by WordPress