development

Python Convert a CSV File into a List

In this tutorial, we will learn how to convert a CSV file into a list in Python and also converting a list back into a CSV file

Read more

Read more
development

How to Iterate a List of Maps in Java

In this blog post, we will explore different techniques to iterate through a list of maps in Java, providing you with the knowledge and tools to efficiently work with such data structures.

Read more

Read more
development

How to Sort a Map in Java

Maps in Java are an essential part of any developer’s toolkit. They provide a powerful way to associate keys with values, but by default, they don’t maintain any specific order. Sometimes, though, we may need to sort the elements of a map based on certain criteria. Fortunately, Java provides several approaches to achieve this. In this blog post, we’ll explore different methods to sort a map in Java.

Read more

Read more
development

Reversing a String in Python: Simple Methods and Code Examples

In this tutorial, we’ll explore different methods to reverse a string in Python, accompanied by code examples to illustrate each approach.

Read more

Read more
development

How to Concatenate Two Lists in Python?

In programming, “concatenation” refers to the operation of linking things together in a series or chain. In the context of Python lists, concatenation refers to the act of joining two or more lists into a single list. Python offers multiple ways to perform this operation, with each method having its own use cases and implications. This article will explore the two primary ways of concatenating lists: using the + operator and the extend() method.

Read more

Read more
development

How to Convert a Java 8 Stream to an Array

Java 8 introduced the Stream API, which provides a powerful way to process collections of data in a functional and declarative manner. Streams offer numerous operations to manipulate data, such as filtering, mapping, and reducing, making them an essential part of modern Java development. At times, it may be necessary to convert a Stream back into a more traditional data structure like an array. In this article, we will explore various methods to convert a Java 8 Stream to an array.

Read more

Read more
development

How to Reverse a List in Python

Python offers numerous built-in functions and methods to manipulate data structures effortlessly. One common task in programming is to reverse the order of elements in a list. In this blog post, we will explore different techniques to reverse a list in Python and provide example code and output to demonstrate their usage.

Read more

Read more
development

How to Sort a Dictionary by Value in Python

Sorting a dictionary by its values is a common task in Python when you need to organize your data based on specific criteria. While dictionaries are inherently unordered, Python provides several approaches to sort a dictionary by its values. In this tutorial, we will explore different methods to accomplish this task, along with clear examples to help you understand the process.

Read more

Read more
development

How to Generate Random Integers Within a Specific Range in Java

Generating random integers within a specific range is a common requirement in various Java applications. Whether you’re building a game, conducting simulations, or implementing algorithms that require randomization, Java provides built-in mechanisms to generate random integers efficiently. In this blog post, we’ll explore different approaches to accomplish this task, providing code examples and explaining their pros and cons.

Read more

Read more
development

How to Map a JSON String to a Java Object

In modern software development, the use of JSON (JavaScript Object Notation) has become prevalent for data exchange between applications. Mapping JSON strings to Java objects is a common requirement in many projects. In this blog post, we will explore two popular libraries, Jackson and Gson, to demonstrate how to map a JSON string to a Java object. Let’s dive in!

Read more

Read more
development

Creating a Table with Java JDBC Statement

In Java, the JDBC (Java Database Connectivity) API provides a standard way to interact with databases. With JDBC, you can perform various database operations, including creating tables. In this tutorial, we’ll explore how to create a table using Java JDBC statements.

Read more

Read more
development

How to Count the Occurrences of Each Element in a List using Python

In data analysis and programming tasks, it is often essential to determine the frequency or count of each element present in a list. Python, with its rich set of built-in functions and libraries, offers a straightforward and efficient approach to accomplish this task. In this blog post, we will explore different methods to count the occurrences of each element in a list using Python.

Read more

Read more
development

How to Filter a Map in Java

In Java, maps provide a convenient way to store key-value pairs. Filtering a map involves selectively extracting elements based on specific conditions. Whether you want to remove certain entries or create a new map with filtered data, this article will guide you through various techniques for filtering maps in Java.

Read more

Read more
development

How to Convert DataFrame to a List of Dictionaries in Python

Working with data in Python often involves using Pandas, a powerful library that provides data manipulation and analysis tools. One common task is converting a DataFrame into a list of dictionaries, which can be useful for various data processing operations. In this blog post, we will explore different approaches to convert a DataFrame to a list of dictionaries in Python.

Read more

Read more
development

How to Switch Between Different Java Versions on Mac

To switch between different versions of Java on your Mac, you can use the jenv tool in combination with Homebrew. Here’s a step-by-step guide:

Read more

Read more
development

How to Use Brew to Install Java on Mac

In this article we show how to install Java on Mac using Homebrew, and how to allow to switch between different versions such as Java8, Java11, Java13 and latest Java version.

Read more

Read more
development

Python: Check if Key Exists in a Dictionary

Dictionaries are an essential data structure in Python that allow you to store and retrieve data using key-value pairs. When working with dictionaries, it is common to encounter situations where you need to determine whether a specific key exists within the dictionary.

Read more

Read more
development

How to Download, Install and run PostgreSQL on Mac and Windows

To download, install, and run PostgreSQL on your local machine, you can follow these steps:

Read more

Read more
development

How to Install Python on Mac and Write Your First Python Script

Python is a versatile and beginner-friendly programming language widely used in various domains, including web development, data analysis, and artificial intelligence. If you’re a Mac user looking to start your Python journey, you’ve come to the right place! In this blog post, we’ll walk you through the process of installing Python on your Mac and guide you in writing your first Python script.

Read more

Read more
development

how to Check if a List is Empty in Python?

In Python, you can check if a list is empty using several methods. Here are some common ways to do it:

Read more

Read more
development

How to Check if a File Exists in Python?

In Python, you can check if a file exists by using several methods. Here are a few of the most common methods:

Read more

Read more
development

Overview of Java Exceptions and How to Handle Them

Java Exceptions are disruptions that occur during the execution of a program, potentially leading it to terminate abruptly. Exception handling enables programmers to foresee and address these issues, directing the program along alternative paths when an exception occurs.

Read more

Read more
development

Java Access Modifiers: Public, Private, Protected

Access modifiers in Java determine the scope and accessibility of classes, interfaces, variables, and methods. They help to ensure that data and methods are accessible only to the intended parts of the code. Java has four types of access modifiers: public, private, protected, and the default (no modifier). Let’s discuss each one with examples.

Read more

Read more
development

Classes and Objects in Java: A Beginner’s Guide

In Java, classes and objects are fundamental building blocks that facilitate the core concept of object-oriented programming (OOP). In this tutorial, we’ll explore what classes and objects are and illustrate their use in Java with code examples.

Read more

Read more
development

Java Object-Oriented Programming Concepts

Object-Oriented Programming (OOP) is a programming paradigm based on the concept of “objects,” which contain data and the functions to manipulate that data. This post provides an overview of the foundational principles of OOP in Java, suitable for beginners and intermediate programmers.

Read more

Read more
development

Python Remove Elements from List

In this blog post, we’ll walk you through various methods to remove elements from a list in Python.

Read more

Read more
development

Introduction to Java Methods

A method in Java is a block of code that performs a specific task or operation. It is defined within a class and can be called (invoked) from other parts of the program. Methods allow you to encapsulate logic, making your code more modular and easier to understand.

Read more

Read more
development

Java Arrays Tutorial with Code Examples

In Java, arrays are objects, and they provide a way to store a fixed-size sequential collection of elements. This tutorial will introduce the basics of using arrays in Java.

Read more

Read more
development

Java's Break and Continue Statements with Code Examples

The break and continue statements, are frequently used to alter the default behavior of loops. In this blog post, we’ll go through the concepts of break and continue, understand their usage, and explore real-world code examples to illustrate their practical applications.

Read more

Read more
development

Java While and Do-While Loops with Code Examples

In this guide, we will delve into two fundamental types of loops in Java: the while loop and the do-while loop. We’ll explore their differences, use cases, and provide illustrative code examples to help you grasp their concepts effectively.

Read more

Read more
development

Java for loop Statement with Code Examples

In this blog post, we will delve into the Java for loop statement, providing a detailed explanation along with various code examples to illustrate its usage.

Read more

Read more
development

Comprehensive Guide to Java Operators with Code Examples

In this blog post, we’ll explore the different types of Java operators, their usage, and provide code examples along with their outputs.

Read more

Read more
development

Java Control Flow Statements: if...else and switch

In Java, there are a number of ways we can control the flow of the program. Control flow statements, change or break the flow of execution by implementing decision making statements.

Read more

Read more
development

Java Switch Statement With Examples

The Java programming language offers various control structures to handle these situations efficiently. One such structure is the “switch statement”, a powerful tool for executing different blocks of code based on the value of an expression. In this blog post, we will explore the Java switch statement, its syntax, use cases, and provide some examples to better understand its functionality.

Read more

Read more
development

Understanding Java's Key Features

In this blog post, we will explore some of Java’s key features that have contributed to its enduring success.

Read more

Read more
development

How to Create a Temporary File in Java

There are times when we need to create temporary files on the fly to store some information and delete them afterwards.

Read more

Read more
development

Python Data Types and Type Conversion

An introduction on Python data types and how to perform type conversions.

Read more

Read more
development

Python Variables - How to Declare and Use Variables in Python

A guide on how to create and use variables in Python.

Read more

Read more
development

Java 8 Streams Tutorial With Code Examples

In this blog post, we are going to discuss Java 8 Streams features and provide lots of different code examples.

Read more

Read more
development

How to Check if a File or a Directory Exists in Java

In Java, there are two primary methods of checking if a file or directory exists. These are:

Read more

Read more
development

How to Run JUnit 5 Tests in a Specific Order

By default, JUnit runs tests in an unpredictable order. There are times when you want to run your tests in a specific order.

Read more

Read more
development

Embold - An AI Based Software Analytics Platform

Static code analysis is an industry-standard practice used to help find weaknesses in constructs against a set of parameters before the program is run. As the cost of bad software rises, both monetarily and ethically, static code analysis is now a part of software development cycles across industries and sectors.

Read more

Read more
development

How to Read Files in Java

Java provides several methods to read files. Each of these methods is appropriate for reading different types of files in different situations. Some are better for reading longer files, others are better for reading shorter ones, etc.

Read more

Read more
development

Java - How to Read JSON File as String

In this post we will look at how to read a JSON file as a String variable in Java. This is sometimes useful, especially in API testing when you want to POST a JSON payload to an endpoint.

Read more

Read more
development

Python Conditional Statements - If, Else and Elif

In this tutorial we look at how to use the if, else and elif statements in Python.

Read more

Read more
development

How to Delete Files and Directories in Java

To delete a file in Java, we can use the delete() method from Files class. We can also use the delete() method on an object which is an instance of the File class.

Read more

Read more
development

Java Generics Tutorial - What are Generics and How to Use Them?

Java Generics is one of the most important features of the Java language. The idea behind generics is quite simple, however, it sometimes comes off as complex because of the shift from the usual syntax associated with it.

Read more

Read more
development

Python Loops - Learn How to Use for and while Loops in Python

Loops are an essential feature of any programming or scripting language. Having the ability to execute a task multiple times is fundamental to any language.

Read more

Read more
development

Java ArrayList Methods With Examples

In this post we cover the most common Java ArrayList methods with code examples for each method.

Read more

Read more
development

Python Strings - Overview of the Basic String Operations

Strings are one of the basic data types in Python. Python strings are a combination of any number of characters made of letters, digits, and other special characters. In this tutorial, you will learn how to create, manipulate, and format them to use under different scenarios.

Read more

Read more
development

SQL Quick Reference: Most Common SQL Commands

In this post, we will cover the basics of SQL commands with short and easy to understand examples.

Read more

Read more
development

How to use the SQL Drop, Truncate and Delete Statements

The SQL DELETE statement is used to delete records from a table whereas the DROP statement is used to delete a table or a database. The TRUNCATE TABLE statement can also be used to delete records from a table.

Read more

Read more
development

How to Encrypt and Decrypt Data in Python using Cryptography Library

In this tutorial you will learn how to encrypt and decrypt data, e.g. a string of text using the cryptography library in Python.

Read more

Read more
development

How to use SQL Create Statement to Create Database and Tables

In this post we will look at how to use the SQL create statement to create a database and tables in SQL. Before being able to create a table and add data, we first need to create a database.

Read more

Read more
development

SQL Alter Table Statement

The ALTER TABLE statement in SQL is used to add, modify or delete table columns. We can also use ALTER TABLE statement to add or drop various table constraints.

Read more

Read more
development

How to Parse JSON in Python

How do we parse JSON in Python. First we load a JSON file using json.load() method. The result is a Python dictionary. We can then access the fields using dictionary methods.

Read more

Read more
development

SQL Select Statement

The SELECT statement in SQL is used to retrieve data from a database table.

Read more

Read more
development

Python Compare Two Lists of Dictionaries

In this post, we look at how to compare two lists of dictionaries in Python and also print out the differences between the two lists.

Read more

Read more
development

Java Compare Two Lists

The List interface in Java provides methods to be able to compare two Lists and find the common and missing items from the lists.

Read more

Read more
development

Download S3 Objects With Python and Boto 3

In this post we show examples of how to download files and images from an aws S3 bucket using Python and Boto 3 library.

Read more

Read more
development

Java Remove Duplicates From List

This post provides examples, showing how to remove duplicate items from an ArrayList in Java.

Read more

Read more
development

How to Install IntelliJ on Mac OS Using Brew

In this post, we look at how to use brew to install IntelliJ Community Edition and Ultimate Edition.

Read more

Read more
development

Java Get Current Working Directory

How to get the current working directory in Java? The current working directory means the root folder of your current Java project.

Read more

Read more
development

Python File Handling

In this post we’ll discuss Python’s File handling methods. The following code examples show how to create, read, write and delete files in Python.

Read more

Read more
development

Extract Numbers From String Using Java Regular Expressions

The following are examples which show how to extract numbers from a string using regular expressions in Java.

Read more

Read more
development

Python Read Write CSV File

In this post we’ll look at how to read and write CSV files in Python. The examples use the CSV module and Pandas.

Read more

Read more
development

Java Get Current Date Time

How to get the current date and time in Java? In this tutorial we’ll look at three different methods in Java 8.

Read more

Read more
development

Python Dictionaries

Dictionaries are the main mapping type that we’ll use in Python. This object is similar to a map in Java.

Read more

Read more
development

How to Convert Java Object to JSON

In this tutorial we show how to convert a Java object to JSON using two libraries, Jackson and Gson.

Read more

Read more
development

Python Tuples

In Python, a tuple is a collection which is ordered and immutable. That means we cannot add or remove items from the tuple.

Read more

Read more
development

Python Sets

Python Sets are a collection type which contain an unordered collection of unique and immutable objects. In other words, a Python set can’t hold duplicate items and once a set is created, the items cannot change.

Read more

Read more
development

Python Lists

In this tutorial we will learn about Python Lists; how to create a list, access items, remove items, delete a list and so on.

Read more

Read more
development

How to Install Python 3 on Mac OS X

In this post we’ll provide instructions on how to install Python3 on Mac OS X with brew.

Read more

Read more
development

Java Write To File Examples

In this post we will look at five different examples on how to write to a file using Java. The code sinppets check to see if the file exists before writing to the file, otherwise a file is created.

Read more

Read more
development

Java - How to Convert String to Int With Examples

How to convert a String to an Int in Java? If the String contains only numbers, then the best way to convert the String to Int is by using Integer.parseInt() or Integer.valueOf().

Read more

Read more
development

Easiest Way to Reverse a String in Java

Reversing a string is one of the most frequently asked questions in a Java technical interview. The Interviewers may ask you to write different ways to reverse a string, or they may ask you to reverse a string without using in-built methods, or they may even ask you to reverse a string using recursion.

Read more

Read more
development

How to Convert Java Map to JSON

There are a number of ways to convert a Java Map into JSON. It is quite common to convert Java Arrays and Maps into JSON and vice versa.

Read more

Read more
development

Java Loop Through List

In this tutorial, we look at five different ways we can iterate through an ArrayList in Java. As of Java 8, we can use the forEach method as well as the iterator class to loop over an ArrayList.

Read more

Read more
development

Different Ways to Iterate Through a Map in Java

Looping over a Map in Java. In this post, we look at four different ways we can iterate through a map in Java. As of Java 8, we can use the forEach method as well as the iterator class to loop over a map.

Read more

Read more
development

How to Encode and Decode JSON Byte Array

The typical way to send binary in JSON is to base64 encode it. Java provides different ways to Base64 encode and decode a byte[]. One of these is DatatypeConverter.

Read more

Read more
development

How to Parse JSON in Java

In this tutorial we will look at how to parse JSON in Java using different libraries.

Read more

Read more
development

Purpose of Overriding toString() Method in Java

What is the purpose of toString() method in Java?

Read more

Read more
development

JUnit 5 Annotations With Examples

JUnit 5 is the next generation of JUnit. The goal is to create an up-to-date foundation for developer-side testing on the JVM. This includes focusing on Java 8 and above, as well as enabling many different styles of testing.

Read more

Read more
development

Difference Between Iterative and Incremental Development in Agile

In agile software development, what is the difference between iterative and incremental development? Are they the same thing? What is the distinction between these two words?

Read more

Read more
development

How to Compare Strings in Java

In order to compare Strings for equality, you should use the String object’s equals or equalsIgnoreCase methods. We will also see why we should not use the == operator to compare strings.

Read more

Read more
development

Convert List to Array in Java

Converting between List and Array is a very common operation in Java.

Read more

Read more
development

Node.js - Hello World HTTP Server Example

In this example we’ll show how to create an HTTP server using Node.js. The server will listen on port 1337, and will send Hello, World! to the browser upon a GET request.

Read more

Read more
development

Java Create File Examples

Creating files in Java is easy. In this post, we’ll look at four different ways to create files in Java. All we need to do is import the relevant package and use relevant methods.

Read more

Read more
development

Java Random Number Generation

Generating random numbers in Java is a common task. For example, you might want to execute tests with random values each time. In this post, we look at different ways we can generate random numbers in Java.

Read more

Read more
development

Read Properties File in Java With ResourceBundle

There are a number of ways to load and read properties file from Java, but the easiest and most straightforward is using the ResourceBundle class.

Read more

Read more
development

Pros and Cons of Test Driven Development

What are pros and cons of Test Driven Development (TDD)?

Read more

Read more
development

Run All Test Classes in a Package from testng.xml Suite

<suite name="Suite1" verbose="1">
    <test name="all-tests">
        <packages>
            <package name="io.devqa.tests.ui"/>
        </packages>
    </test>
</suite>

Read more

Read more
development

Software Development Methodologies

In this post we’ll go through the different software development methodologies along with their advantages and disadvantages and when to use each model.

Read more

Read more