Posts

Showing posts with the label kotlin

Kotlin: Print Odd & Even Numbers from Array, List & Set

Example 1: Kotlin program to print odd numbers from a List import java.util.stream. Collectors /*Kotlin Program to find Odd Numbers from a list*/ object DriverClass { @JvmStatic fun main (args: Array < String >) { val numbers = listOf ( 1 , 4 , 8 , 40 , 11 , 22 , 33 , 99 ) val oddNumbers = numbers .stream(). filter { o: Int -> o % 2 != 0 } . collect( Collectors .toList()) println ( oddNumbers ) } } Example 2: Kotlin program to print even numbers from a List import java.util.stream. Collectors /*Kotlin Program to find Even Numbers from a list*/ object DriverClass { @JvmStatic fun main (args: Array < String >) { val numbers = listOf ( 1 , 4 , 8 , 40 , 11 , 22 , 33 , 99 ) val evenNumbers = numbers .stream(). filter { o: Int -> o % 2 == 0 } . collect( Collectors .toList()) println ( evenNumbers ) } } Example 3: Kotlin program to print eve

Kotlin Spring Boot Full Stack Mini Projects With Source Code - Free Download

Image
1. Kotlin + Spring Boot + Angular + MongoDB: User Management System Free Download User Interface: Complete Source Code Free  -   Click here Local Setup: Step 1 : Download or clone the source code to a local machine. Spring Boot - Backend Project Setup Step 2 :  mvn clean install Step 3 : Run the Spring Boot application mvn spring-boot:run Angular 10 - Frontend Project Setup Step 4:  The npm install installs all modules that are listed on package.json file and their dependencies npm install Step 5:  Run the Frontend application ng serve Complete Source Code Free  -  Click here 2. Kotlin + Spring Boot + Vue + MongoDB: User Management System Free Download User Interface: Complete Source Code Free  -   Click here Local Setup: Step 1 : Download or clone the source code to a local machine. Spring Boot - Backend Project Setup Step 2 :  mvn clean install Step 3 : Run the Spring Boot application mvn spring-boot:run Vue JS - Frontend Project Setup Step 4:  The npm install installs all modules th

Registration and Login with Kotlin + Spring Security + Thymeleaf

Image
Hello everyone, I hope you all are well, today we will learn how to create user registration and login using Kotlin,  Spring security,  Thymeleaf, JPA, and H2DB. GitHub repository link is provided at the end of this tutorial. You can download the source code. Technologies used: Spring Boot  makes developing the web applications and microservices with Spring Framework faster and easier through three core capabilities: 1.  Autoconfiguration 2. An opinionated approach to configuration 3. The ability to create standalone applications Kotlin   is an open-source statically typed programming language. It is object-oriented and supports functional programming features. It is designed for the JVM (Java Virtual Machine) Spring Security  is a Java/Java EE framework that provides authentication, authorization, and other security features for enterprise applications. Thymeleaf  is a modern server-side Java template engine for both web and standalone environments. Maven  is a build automation tool u