3.2. Kotlin IntelliJ IDEA environment building

发布时间 : 2023-10-12 23:00:03 UTC      

Page Views: Stats unavailable

Free community version of IntelliJ IDEA download address: https://www.jetbrains.com/idea/download/index.html

After downloading and installing, we can use this tool to create projects. The creation process requires selecting SDK and using Kotlin with JDK 1.6+.

Check the Kotlin (Java) check box in the drop-down menu on the right.

Image0

Next, let’s choose a project name: HelloWorld

Image1

After the project is created, the file structure is as follows, which is very similar to Java.

Image2

Next, let’s click src folder, creating a Kotlin file, which can be named at will, here we create app.kt

Image3

Next, we are in app.kt to write some code in the file. IntelliJ IDEA provides us with a template to do this quickly, just type main then press Tab ,that’s it.

Image4

Now let’s add a line of code to print out "Hello, World!" , let’s do it.

Image5

Next, we can click on the upper left corner of the editor. kotlin icon and select Run ‘AppKt’ to run the code:

Image6

After running successfully, you can run it in the window Run , you can see the results in.

Image7

So the first Kotlin code is running.

Principles, Technologies, and Methods of Geographic Information Systems  102

In recent years, Geographic Information Systems (GIS) have undergone rapid development in both theoretical and practical dimensions. GIS has been widely applied for modeling and decision-making support across various fields such as urban management, regional planning, and environmental remediation, establishing geographic information as a vital component of the information era. The introduction of the “Digital Earth” concept has further accelerated the advancement of GIS, which serves as its technical foundation. Concurrently, scholars have been dedicated to theoretical research in areas like spatial cognition, spatial data uncertainty, and the formalization of spatial relationships. This reflects the dual nature of GIS as both an applied technology and an academic discipline, with the two aspects forming a mutually reinforcing cycle of progress.