Methods in Java

In this tutorial, we will learn about Methods in Java. A method is a small piece(block) of code which can perform some special task and it only executes when we call this method. The method allows us to reuse code. Here we will learn how to create a Method and How to call a method in

Methods in Java Read More »

Arrays in Java

In this tutorial, we will learn about Arrays in Java. Till now we learned about variables. We know in a variable we can store a value, for example, int num=10; Here num is variable of int type in which we can store an integer value. but suppose you want to store 100 values. It means you should

Arrays in Java Read More »

Comments in Java

In this tutorial, we will learn about Comments in Java. Comments are not used to perform any function in the program but they are really useful for developers. Developers can write comments with variables and Methods to remember their working (purpose) in the program. One important thing to mention comments doesn’t put any impact on the

Comments in Java Read More »

Jump expressions in Kotlin

In this tutorial, we will learn about Jump expressions in Kotlin. The main use of all these three jump expressions is to move the cursor on the different statement in code. There are a total of three jump expressions available in Kotlin. break continue return Break expression: The break expression is used to terminates the

Jump expressions in Kotlin Read More »

Loops in Kotlin

In this tutorial, we will learn about Loops in Kotlin. Loops are used to run a piece of code several times. For example, you want to show 1 to 100 numbers on screen it means you have to write println statement 100 times. But with the help of loop, you can do this by just

Loops in Kotlin Read More »

When operator in Kotlin

In this tutorial, we will learn about when operator in Kotlin. When operator is work same as Switch statement of Java. In Kotlin when operator uses to match an argument with all the branches until it finds a satisfying condition in a branch. After finding satisfying condition it runs all statements inside the scope of

When operator in Kotlin Read More »

if expression in Kotlin

In this tutorial, we will learn about if expression in Kotlin. In Kotlin “if” is not a keyword(as it was in Java). In Kotlin “if” is an expression and it returns a value. In mean ordinary “If expression” in Kotlin can work just like a ternary operator(condition ? then: else) of Java. Apart from this, we can also use “if-else” as simple blocks the same

if expression in Kotlin Read More »

Comments in Kotlin

In this tutorial, we will learn about Comments in Kotlin. Comments are not used to perform any function in the program but they really useful for developers. Developers can write comments with variables and functions to remember their working (purpose) in the program. One important thing to mention comments doesn’t put any impact on the execution

Comments in Kotlin Read More »

Input and Output in Kotlin

In this tutorial, we will learn about Input and Output in Kotlin. We have written several Kotlin programs in previous tutorials and in many programs we have displayed some output on the screen. We have two functions in Kotlin to show output on the screen. print()  println() The only difference between is when we use print() method it prints

Input and Output in Kotlin Read More »

×