Author: admin

  • Comments

    A comment is a programmer-readable explanation or annotation in the Kotlin source code. They are added with the purpose of making the source code easier for humans to understand, and are ignored by Kotlin compiler. Just like most modern languages, Kotlin supports single-line (or end-of-line) and multi-line (block) comments. Kotlin comments are very much similar…

  • Intrinsic Functions

    Intrinsic functions are some common and important functions that are provided as a part of the Fortran language. We have already discussed some of these functions in the Arrays, Characters and String chapters. Intrinsic functions can be categorised as − We have discussed the array functions in the Arrays chapter. In the following section we…

  • Basic Syntax

    Kotlin Program Entry Point An entry point of a Kotlin application is the main() function. A function can be defined as a block of code designed to perform a particular task. Let’s start with a basic Kotlin program to print “Hello, World!” on the standard output: When you run the above Kotlin program, it will generate the…

  • Architecture

    Kotlin is a programming language and has its own architecture to allocate memory and produce a quality output to the end user. Following are the different scenarios where Kotlin compiler will work differently. Whenever two byte coded files ( Two different programs from Kotlin and Java) runs on the JVM, they can communicate with each…

  • Modules

    A module is like a package where you can keep your functions and subroutines, in case you are writing a very big program, or your functions or subroutines can be used in more than one program. Modules provide you a way of splitting your programs between multiple files. Modules are used for − Syntax of…

  • Environment Setup

    Installing Kotlin command-line compiler One of the key features of Kotlin is that it has interoperability with Java i.e. You can write Kotlin and Java code in the same application. Like Java, Kotlin also runs on JVM therefore to install Kotlin on Windows directly and work with it using the command line You need to…

  • Procedures

    A procedure is a group of statements that perform a well-defined task and can be invoked from your program. Information (or data) is passed to the calling program, to the procedure as arguments. There are two types of procedures − Function A function is a procedure that returns a single quantity. A function should not modify its…

  • Overview

    What is Kotlin? Kotlin is a new open source programming language like Java, JavaScript, Python etc. It is a high level strongly statically typed language that combines functional and technical part in a same place. Currently, Kotlin mainly targets the Java Virtual Machine (JVM), but also compiles to JavaScript. Kotlin is influenced by other popular…

  • Node.js Child Process

    The Node.js child process module provides the ability to spawn child processes in a similar manner to popen(3). There are three major way to create child process: Node.js child_process.exec() method The child_process.exec() method runs a command in a console and buffers the output. Syntax:PlayNextMute Current Time 0:11 / Duration 18:10 Loaded: 5.14%  Fullscreen Parameters: 1) command: It specifies…

  • File Input Output

    In the last chapter, you have seen how to read data from, and write data to the terminal. In this chapter you will study file input and output functionalities provided by Fortran. You can read and write to one or more files. The OPEN, WRITE, READ and CLOSE statements allow you to achieve this. Opening…