Skip to content
Sandny Blog
  • Home
  • Java
  • JavaScript
  • AWS
  • Embedded
  • About
String.lines() Java

How to convert a string into a stream of…

  • July 29, 2021August 1, 2021
  • by Coder Kai

Java 11 adds a few new methods to the String class – isBlank, lines, strip, stripLeading, stripTrailing, and repeat. Let’s see how we can make use of the String.lines().

Read more “How to convert a string into a stream of lines using String.lines() method in Java 11” →
How to avoid NullPointerException in Java Java

How to avoid NullPointerException in Java

  • July 7, 2020July 13, 2021
  • by Coder Kai

Most of the developer’s idea is null checks makes the code less understandable and less reliable. Tony Hoare, who invented null references, calls them “a billion-dollar mistake”.

Read more “How to avoid NullPointerException in Java” →
The new features in Java 14 Java

JDK 14 – The new features in Java 14

  • December 27, 2019December 27, 2019
  • by Coder Kai

Recently, Java changed its release cycle more rapidly. JDK 13 released on September 2019 and JDK 14 is scheduled for a production release on 17 March 2020. The features targeted to JDK 14 as follows,

1. Pattern Matching for instanceof

Java instanceof operator is used to test whether the object is an instance of the specified type. With Java 14 instanceof operator enhance to the pattern matching as bellow,

Read more “JDK 14 – The new features in Java 14” →
Java 13 features Java

Java 13 (JDK 13) -The New Features

  • November 18, 2019December 19, 2019
  • by Coder Kai

Java Development Kit (JDK) 13, the latest version of standard Java, is now available and release with some new features of,

1. Switch Expressions

This is one of the preveiew language feature defined in java 13.

Java 13 extends the previous Java 12 Switch Expressions by adding a new yield keyword to return a value from switch expression.So breaks syntax is no longer compiled in Java 13, it uses yield instead.

Read more “Java 13 (JDK 13) -The New Features” →

Java

Java 13 Switch Expressions

  • November 17, 2019November 20, 2019
  • by Coder Kai

This is another preview language feature defined in java 13. Java 13 extends the previous Java 12 Switch expressions by adding a new yield keyword to return a value from switch expression. So break syntax is no longer compiled in Java 13, it uses yield.

As traditional switch statement, there are many break statements make it unnecessarily verbose and hard to debug errors.

Read more “Java 13 Switch Expressions” →
How to enable preview feature in Java 13 with maven. Java

Enable the Preview Feature in Java 13 with Maven

  • October 8, 2019November 28, 2019
  • by Coder Kai

Preview Feature

A preview feature or VM feature is a new feature of the Java SE Platform.

This article shows you how to use –enable-preview to enable the preview features in Java 13 with maven.

To use preview features in your programs, you must explicitly enable them in the compiler and the runtime system. Because this feature disabled by default.If not, you’ll receive an error message that states that your code is using a preview feature.

Read more “Enable the Preview Feature in Java 13 with Maven” →

create a Vertx Eventbus js client Java

How to create a Vertx EventBus js client and…

  • October 21, 2017September 4, 2018
  • by Coder Kai

Recently I came across Vertx toolkit (http://vertx.io/docs/) when I was building an API. What I needed was to build a simple server to connect a javascript app and transfer message in between. So before going into more details lets discuss what Vertx toolkit has to offer and then create a Vertx Eventbus js client. Read more “How to create a Vertx EventBus js client and use it with a web server with CORS” →

neo4j boltdriver Java

How to create a neo4j BoltDriver Datasource and connect…

  • October 19, 2017November 21, 2019
  • by Coder Kai

I wanted to test the neo4j database access using a data source defined in Wildfly server. I used Wildfly 10.1.0 release. I wanted to use the driver with bolt protocol to observe the performance when using it. Read more “How to create a neo4j BoltDriver Datasource and connect it with a web app” →

Servlet File Upload Java

Servlet File Upload

  • May 18, 2017July 26, 2021
  • by Coder Kai

HOW TO UPLOAD FILES AND EXTRACT OTHER DATA FROM A POST SUBMISSION IN A SERVLET

In working with java EE, the submission of data from a JSP or a Servlet is basically handled by Struts or Spring frameworks. But for programmers, who may have an interest in the things in a POST Request, will find some use in this. Especially, if you intend to build a separate framework for any web application.

Read more “Servlet File Upload” →

Java RMI Slider Java

JAVA RMI Observer Slider

  • May 18, 2017July 26, 2021
  • by Coder Kai

How To Make A Slider With RMI Server

First of all, let’s take a look at the RMI structure.
RMI is can be used to run a server and to connect several clients to the given server. It can be loosely coupled with the design patterns to optimise scalability.

Read more “JAVA RMI Observer Slider” →

Categories

  • android 3
  • Apollo Client 1
  • AWS 8
    • AppSync 5
    • EC2 1
    • EKS 1
    • Route53 1
    • S3 1
  • AWS Amplify 1
  • Chakra UI 1
  • Docker 1
  • Embedded 1
  • EmberJS 1
  • FCM 1
  • Godaddy 1
  • GraphQL 3
  • ios 1
  • Jasper 1
  • Java 10
    • Java 11 1
    • Java 14 1
  • JavaEE 2
  • JavaScript 39
    • Express.js 4
    • Javascript Guide 7
    • Node.js 3
    • react-native 4
    • React.js 17
    • Typescript 1
  • Kubernetes 1
  • machine learning 1
  • Maven 2
  • OCaml 3
  • PostgreSQL 1
  • Python 2
  • react-native 4
  • ReactJS 3
  • sass 1
  • Server 6
  • spark 1
  • Terraform 2
  • Ubuntu 4
  • Uncategorized 1
  • webpack 2

Recent Comments

  • Enregistrement Binance on Enable the Preview Feature in Java 13 with Maven
  • binance on How to create a neo4j BoltDriver Datasource and connect it with a web app
  • escort kuşadası bayan on How to create Lambda function with Terraform

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Archives

  • October 2022 3
  • September 2022 7
  • May 2022 1
  • December 2021 1
  • August 2021 1
  • July 2021 6
  • June 2021 3
  • February 2021 1
  • July 2020 1
  • December 2019 5
  • November 2019 6
  • October 2019 3
  • August 2019 1
  • March 2019 1
  • February 2019 1
  • January 2019 2
  • December 2018 1
  • September 2018 2
  • August 2018 1
  • June 2018 1
  • February 2018 1
  • November 2017 2
  • October 2017 5
  • September 2017 1
  • June 2017 1
  • May 2017 10
Sandny Blog space
Theme by Colorlib Powered by WordPress