Skip to content

mayi2010/kt-01-hello

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kotlin Hello

Hello -- com.example.Hello

show how to write hello, and use class defined in Java.

Run from Intellj IDEA

open com.example.Hello.kt, right click and click "Run 'com.example.HelloKt'".

Run from Command Line

First

mvn compile

Then

kotlin -classpath target/classes com.example.HelloKt

Or

mvn exec:java -Dexec.mainClass="com.example.HelloKt" -Dexec.args=""

Types -- com.example.Types

show type of kotlin.

ControlFlow -- com.example.ControlFlow

if, when, for, break

ObjectOriented -- com.example.ObjectOriented

class open inherited

About

Kotlon tutorial 01 -- hello

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 79.2%
  • Java 20.8%