Programming

How To Use Web APIs in PHP 8.0 — step-by-step Programming tutorial on Progressive Robot

How To Use Web APIs in PHP 8.0

In this tutorial, you’ll leverage the power of APIs in a basic web application that will retrieve, transform, and display data from the OpenWeather Map API. You’ll build a client for a RESTful API using HTTP POST and GET calls to interact with the server. You’ll start with a basic app before enabling user input and using a Software Development Kit (SDK) to help future-proof the code. The final web application will give users real-time weather information about a city of their choice.

Read more
How To Write Conditional Statements in PHP — step-by-step Programming tutorial on Progressive Robot

How To Write Conditional Statements in PHP

Decisions written in code are formed using conditionals. “If x, then y.” This tutorial will start with an overview of comparison operators that will be used to build conditional statements. Next, it will take you through writing conditional statements in PHP, including the if, else, and elseif keywords. This also includes combining conditions using the logical operators of “and” or “or”. Finally it will also cover some special conditional operators to more precisely describe a situation.

Read more
How To Write Your First Ruby Program — step-by-step Programming tutorial on Progressive Robot

How To Write Your First Ruby Program

The “Hello, World!” program is a classic and time-honored tradition in computer programming. It’s a simple and complete first program for beginners, and it’s a good way to make sure your environment is properly configured. This tutorial will walk you through creating this program in Ruby.

Read more
Java 15 Features — step-by-step Programming tutorial on Progressive Robot

Java 15 Features

URL: https://www.progressiverobot.com/java-15-features/ Keeping up with the six-month cycle tradition, after the release of [Java 14](/community/tutorials/java-14-features#5-text-blocks-preview) on March 17, 2020, we now have Java 15, the next non-LTS version rolling out on September 15, 2020. Java 15 Features Here's a quick look at features that are a part of Java 15: Sealed Classes (Preview) – JEP […]

Read more
Java Catch Multiple Exceptions, Rethrow Exception — step-by-step Programming tutorial on Progressive Robot

Java Catch Multiple Exceptions, Rethrow Exception

URL: https://www.progressiverobot.com/java-catch-multiple-exceptions-rethrow-exception/ In Java 7, catch block has been improved to handle multiple exceptions in a single catch block. If you are catching multiple exceptions and they have similar code, then using this feature will reduce code duplication. Let's understand java catch multiple exceptions feature with an example. Java catch multiple exceptions ![java catch multiple […]

Read more
Java do while loop — step-by-step Programming tutorial on Progressive Robot

Java do while loop

URL: https://www.progressiverobot.com/java-do-while-loop/ Java do-while loop is used to execute a block of statements continuously until the given condition is true. The do-while loop in Java is similar to [while loop](/community/tutorials/java-while-loop) except that the condition is checked after the statements are executed, so do while loop guarantees the loop execution at least once. Java do while […]

Read more
How To Use Java HttpURLConnection for HTTP GET and POST Requests — step-by-step Programming tutorial on Progressive Robot

How To Use Java HttpURLConnection for HTTP GET and POST Requests

URL: https://www.progressiverobot.com/java-httpurlconnection-example-java-http-request-get-post/ Introduction The HttpURLConnection class from java.net package can be used to send a Java HTTP Request programmatically. In this article, you will learn how to use HttpURLConnection in a Java program to send GET and POST requests and then print the response. Prerequisites For this HttpURLConnection example, you should have completed the [Spring […]

Read more
Java long to String — step-by-step Programming tutorial on Progressive Robot

Java long to String

URL: https://www.progressiverobot.com/java-long-to-string/ Today we will see different ways to convert long to string in java. Java long to string conversion can be done in many ways, we will go through them one by one with example code snippets. Java Long to String !java long to string Let's look at different code snippets for java long […]

Read more
Java String Copy — step-by-step Programming tutorial on Progressive Robot

Java String Copy

URL: https://www.progressiverobot.com/java-string-copy/ Sometime back I was asked how to copy a String in java. As we know that [String](/community/tutorials/java-string) is an [immutable](/community/tutorials/how-to-create-immutable-class-in-java) object, so we can just assign one string to another for copying it. If the original string value will change, it will not change the value of new String because of immutability. Java […]

Read more
CHAT