Articles on Trending Technologies

Technical articles with clear explanations and examples

Hello World in Bash Script

Mead Naji
Mead Naji
Updated on 04-Nov-2024 453 Views

A command line or terminal is an important component of the Linux operating system, as it allows for inclusive administration and management of the operating system as a whole. Even if we are talking about a Linux distribution that uses a graphical interface, you will still need a terminal to unleash all the power and potential of Linux. Linux provides a "shell" to work on the command line. The shell is a command interpreter responsible for executing commands based on what you enter on the command line. The most popular shell is bash (short for "Bourne Again Shell, " ...

Read More

How to Get the names of the table in SQL

SQL
guru
guru
Updated on 01-Nov-2024 416 Views

In SQL databases, it is often necessary to retrieve the list of table names within a database to understand the structure or to perform the certain operations. Each SQL-based database system offers specific ways to query its metadata to extract the table names. In this article, we will explore how to get the names of tables in popular relational database systems including the MySQL, SQL Server, PostgreSQL and Oracle. We will cover the built-in SQL queries and functions that are commonly used for this task. Need to Retrieve Table Names? Database Exploration: When working with ...

Read More

Delete middle element of a stack in Java

Sourav Sarkar
Sourav Sarkar
Updated on 01-Nov-2024 574 Views

In order to delete the middle element of a stack, then first we need to remove the elements above the middle element. After removing the middle element, we restore the elements above it to maintain the original sequence. We can achieve this using a recursive approach, as explained step-by-step below. We cannot delete the middle element of the stack directly because, according to the stack property, we can perform only push and pop operations on the top of the stack. Steps to Delete the Middle Element of a Stack Step 1: Determine the Position of the Middle Element, First ...

Read More

Minimum number of jumps to reach end using Java

Pushpa kumari
Pushpa kumari
Updated on 01-Nov-2024 365 Views

In this article, we will learn how to solve the "Minimum Number of Jumps to Reach the End" problem using Java. Let's break it down step-by-step. The idea is to find the smallest number of jumps needed to get from the start to the end of an array. Each element in the array represents the maximum number of steps you can take from that position. Problem StatementGiven an array arr[], where each element represents the maximum number of steps you can move forward from that position, the goal is to start from the beginning of the array and ...

Read More

Difference Between Markov Chains and Hidden Markov Models

Moksh Gupta
Moksh Gupta
Updated on 01-Nov-2024 1K+ Views

When exploring machine learning, and artificial intelligence especially in probabilistic models and time-series analysis, you’ll likely come across two crucial concepts: Discrete & Continuous Markov Chains as well as Hidden Markov Models. Of them, the first one is the approach based purely on probability theory while the second one has certain differences in the structure, application and in fact, in the complexity level. To effectively use these differences it is crucial to comprehend them by employing into practical application such as speech to text conversion, finance, and natural language processing. This article will provide an overview of Markov Chains and ...

Read More

Java program to put value to a Properties list

karthikeya Boyini
karthikeya Boyini
Updated on 30-Oct-2024 484 Views

In this article, we will learn how to use the Properties class in Java to store and display key-value pairs. The Properties class is useful for handling configuration settings or storing data in a structured way, where both keys and values are strings. By using the put() method, we can easily add values to a property list and later retrieve or display these key-value pairs. This approach provides a simple and efficient way to manage data in a key-value format in Java applications. Problem Statement A properties list contains country-year pairs. Write a Java program to store values ...

Read More

Java program to sort the elements of the stack in descending order

AYUSH MISHRA
AYUSH MISHRA
Updated on 30-Oct-2024 11K+ Views

In this article, we will learn to sort the elements of the stack in descending order. A stack is a data structure that works on the LIFO (Last In First Out) principle which means that the last added item is removed first. One real-life example of a stack is browser history where the last used website appears first. In this article, we are going to discuss, how we can sort the element of stack in descending order in Java.  Problem Statement In the given problem, we have a stack of unsorted integer elements, which we have to sort in descending ...

Read More

Java program to merge duplicates of a List with TreeSet

karthikeya Boyini
karthikeya Boyini
Updated on 30-Oct-2024 700 Views

In this article, we will learn to merge duplicate elements from a List in Java by using a TreeSet. This program will take a List of strings containing duplicate values, transfer the elements into a TreeSet, and display the unique, sorted elements. Using a TreeSet is ideal here because it automatically removes duplicates and orders the elements in natural order. Problem Statement Write a Java program to remove duplicate elements from a list using a TreeSet. The program should take a list with repeated elements, convert it into a TreeSet to eliminate duplicates, and display the unique, sorted elements. Input ...

Read More

IoT vs. Edge Computing: What’s the difference?

Devang Delvadiya
Devang Delvadiya
Updated on 30-Oct-2024 467 Views

We live in an associated existence where more individuals are associated than at any other time in recent memory. The Internet of Things alludes to the aggregate organization of billions of actual gadgets surrounding us that are associated with the Web. These gadgets create information in unfathomable volumes, the executives and capacity of which are similarly significant. In any case, such information in their unique structure has no utilization except if dug for important data. This requires explicit area information, important experience, and the specialized ability of genuine specialists. To satisfy the rising needs of different IoT applications and administrations, ...

Read More

GUI Testing Tutorial: User Interface (UI) Test Cases with Examples

Vineet Nanda
Vineet Nanda
Updated on 30-Oct-2024 8K+ Views

What is a GUI? For a computer application, there are two sorts of interfaces. The Command Line Interface (CLI) is a program that allows you to write text and have the computer reply to it. The Graphical User Interface (GUI) is a method of interacting with a computer that uses graphics rather than words. The following are some of the graphical user interface components that may be used to interact with the application − Radio Button ...

Read More
Showing 31761–31770 of 61,297 articles
Advertisements