How to write your first Java program? If you’re starting out learning Java, this probably is the first question you’d ask yourself. But before writing a Java program, you need to install the Java Development Kit for your operating system,
Chapter 4: Oracle JDK8 on Windows 10: Installation
This post demonstrates how to install Oracle JDK8 on Windows 10. Download JDK8 From Oracle First, go to www.google.com and search for “Java JDK 8”. Then, click the link that says “Java SE Development Kit 8 – Downloads“. Once you’re
Chapter 1: Introduction to Java as Language and Platform
When we say “Java,” we refer to the Oracle technology with two aspects – Java as a programming language and Java as a platform. Java as a programming language allows us to create Java programs, while Java as an environment
Java String – Convert or Parse to Primitive int
There are several ways to convert or parse Java Strings to int values. In Java, Integer values come in various types. We have the primitives long, int, short, and byte; and, we have equivalent Wrapper classes Long, Integer, Short and
Rust dev-dependencies and dependencies
In any codebase, some codes are not for the end-users. Meaning, they do not become part of the final application – be it for QA or production environment. They are codes for testing (e.g., unit tests) and building the app
Ways to Create Temporary Files In Rust
Creating temporary files in Rust is sometimes essential when we need to use the files once or cache data for a short time. We then let the operating system delete the files at a later time automatically or by its
Actix-Web In Ubuntu Docker Container Not Accessible
An Actix-Web application in an Ubuntu Docker container may not be accessible from the host operating system. For non-production codes and configuration, it may be due to two factors. Actix-Web Is Not Accessible in Docker Container Due to Rust Codes
Deploy Actix-Web In Docker Container
We can deploy a Rust application based on the Actix-Web framework in a Docker container when we are coding in Windows. In this post, we compile Rust codes on Windows but deploy the application to an Ubuntu 18.04 Docker image.
Send HTTP Responses From Actix-Web
Learning how to send HTTP responses from Actix-web to clients will help us craft the responses according to our needs. For instance, we could send JSON responses for specific URIs. Although we could just set the response content type and
The Into and Unwrap Methods In Rust
Developers new to Rust probably have encountered the into and unwrap method calls several times in sample codes. At first sight, these calls may appear puzzling to them. So, where do we use these methods? Chances are these methods that