Skip to content
Xiith
  • Home
  • C
  • C++
  • C#
  • Java
  • Python
  • Kotlin
  • R
  • Go
  • JavaScript
  • About us
Search this website
Menu Close
  • Home
  • C
  • C++
  • C#
  • Java
  • Python
  • Kotlin
  • R
  • Go
  • JavaScript
  • About us

Kotlin Program to add two numbers using the secondary constructor

In this program, You will learn how to add two numbers using the secondary constructor in Kotlin. 20 = 10 + 10 30 = 10 + 20 Example: How to…

Continue ReadingKotlin Program to add two numbers using the secondary constructor

Kotlin Program to add two numbers using the primary constructor

In this program, You will learn how to add two numbers using the primary constructor in Kotlin. 20 = 10 + 10 30 = 10 + 20 Example: How to…

Continue ReadingKotlin Program to add two numbers using the primary constructor

Kotlin Program using secondary constructor

In this program, You will learn how to implement a secondary constructor in Kotlin. constructor() { //constructor } Example: How to implement a secondary constructor in Kotlin. class Test {…

Continue ReadingKotlin Program using secondary constructor

Kotlin Program using primary constructor

In this program, You will learn how to implement the primary constructor in Kotlin. class Test(var name: String, var sal: Int) { //statement } Example: How to implement primary constructor…

Continue ReadingKotlin Program using primary constructor

Kotlin Program to check a number is a palindrome or not using class

In this program, You will learn how to check a number is a palindrome or not using the class in Kotlin. Some list of palindrome numbers: 11 22 121 191…

Continue ReadingKotlin Program to check a number is a palindrome or not using class

Kotlin Program to reverse a number using class and object

In this program, You will learn how to reverse a number using the class and object in Kotlin. 1234 => 4321 8765 => 5678 Example: How to reverse a number…

Continue ReadingKotlin Program to reverse a number using class and object

Kotlin Program to find factorial of a number using class

In this program, You will learn how to find factorial of a number using class in Kotlin. 3! => 1 * 2 * 3 = 6 4! => 1 *…

Continue ReadingKotlin Program to find factorial of a number using class

Kotlin Program to add two numbers using class and object

In this program, You will learn how to add two numbers using class and object in Kotlin. 20 = 10 + 10 30 = 10 + 20 Example: How to…

Continue ReadingKotlin Program to add two numbers using class and object

Kotlin Program to delete an element in an array

In this program, You will learn how to delete an element in an array in Kotlin. Array list is: 2 3 4 5 6 7 Enter for delete: 4 New…

Continue ReadingKotlin Program to delete an element in an array

Kotlin Program to insert an element in an array

In this program, You will learn how to insert an element in an array in Kotlin. List is: 1 2 3 4 5 6 Insert item: 44 Insert location: 7…

Continue ReadingKotlin Program to insert an element in an array
  • 1
  • 2
  • 3
  • 4
  • …
  • 6
  • Go to the next page

Xiith is created for educational, experimental, and schooling purpose. Examples on Xiith are made easier to make a better or basic understanding. Tutorials, testimonials, and examples are continuously checked to avoid delusion, but we cannot take complete responsibility of all programs on Xiith. When you are operating this site, you have to agree to read and accept our terms of use, cookie and privacy policy. Copyright © 2021 by Xiith. All Rights Reserved. About us.