Articles on Trending Technologies

Technical articles with clear explanations and examples

Number of pairs with maximum sum in C++

Aishwarya Naglot
Aishwarya Naglot
Updated on 12-Nov-2024 597 Views

We need to find a number of all the pairs that has the maximum sum, In a given array of integers. A pair consists of two numbers, and the sum is simply the result of adding them. We will see multiple solutions to this problem, starting with a naive (brute force) approach and moving to more optimized solutions. Below is the list of approaches we will cover in this article: Brute Force approach using two loops Max Sum Pairs with Sorting ...

Read More

How to Create and Run Node.js Project in VS Code Editor?

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

Node.js is one of the most vital tools in the hands of modern developers to create the necessary server applications. In this article, you will learn about how to create and run a Node.js project in one of the best, and most used, editors named Visual Studio Code (VS Code). What is Node.js? Node.js is an open-source cross-platform runtime environment for executing JavaScript code on the server side. It will be beneficial for creating web servers, APIs, and applications that run in real-time. Key Features of Node.js The following are the key features of Node.js − ...

Read More

Create a Date object using the Calendar class in Java

Aishwarya Naglot
Aishwarya Naglot
Updated on 11-Nov-2024 2K+ Views

In Java, we can create a date object using the calendar class, which gives us more control on date and time. We will discuss the process in this article. What is the Calendar class? In order to understand the usage of we must know what is the calendar class. The Calendar class allows us to work with date and time more easily than Date class. like, we can set specific parts of the date, like month, year, and day. For using Calendar class, import the following package. import java.util.Calendar; Now, let us create an object of Calendar class. Calendar ...

Read More

Java program to demonstrate the call by value

Pranay Arora
Pranay Arora
Updated on 11-Nov-2024 989 Views

In programming, functions often require parameters to be passed to them to be called or invoked. There are 2 ways to call functions, the 1st being call by Reference and the 2nd being call by value. In this article, we are going to demonstrate call by value in Java. Call by value is a method in which the value of the argument is passed as a copy to the function, hence any change made to this argument inside the function will not affect the original value of the argument beyond the scope of this function. To help understand these concepts ...

Read More

Natural Numbers in C++ Program

Aishwarya Naglot
Aishwarya Naglot
Updated on 11-Nov-2024 4K+ Views

In this article, we will cover C++ programs to work with natural numbers. we use natural numbers in various operations, such as indexing arrays, performing loops, and validating user input. we will also write code to demonstrate how natural numbers can be used for these purposes in C++. Natural Numbers are a set of positive numbers, starting from 1 and going to infinity. natural numbers are: 1, 2, 3, 4, 5... etc In C++, understand concepts like conditions, loops, and how we store and manipulate variables. We will provide everything you need to know about natural numbers along with programs. ...

Read More

Difference between Groovy and Java

Aishwarya Naglot
Aishwarya Naglot
Updated on 11-Nov-2024 1K+ Views

Programmers have been using scripting languages for quite some time. When it comes to Linux and Unix computers, scripting languages were mostly utilised for things like scripting tasks that automate platform customizations, software installations, and one-shot command line jobs with bash scripts. Groovy is an authentically creative language that runs on the same virtual machine as Java. Hence, it can interact with Java in a way that is both efficient and effective. Despite the fact that Java is one of the most popular and commonly used programming languages for producing content for the web, certain activities, such as file handling ...

Read More

Remote Work and Hybrid Workspaces

Trupti Watkar
Trupti Watkar
Updated on 11-Nov-2024 168 Views

Remote Work and Hybrid Work spaces have the strongest growth rates in recent years, primarily due to the advancement in technology and the global pandemic. These models of work have dramatically altered how we imagine the office, balance work and life, and achieve productivity. Let's dive into what each model means, its advantages and disadvantages, and how companies and employees can make the best of them. Remote WorkRemote work or working from home (WFH) is a job type where the employees need not be physically present in the office but can do their job from anywhere, even from home, though ...

Read More

Data plane Development Kit (DPDK)

LavanyaMalakalapalli
LavanyaMalakalapalli
Updated on 11-Nov-2024 795 Views

Network performance, including throughput and latency, is important for many applications. These include devices that manage wired and wireless systems, such as routers, firewalls, etc. High performance is also crucial for services like video streaming etc. Traditional networks are struggling with performance issues because the hardware they use to send and receive data packets has limitations. The main problem is that these networks rely on the kernel network protocol stack. This approach can be slow and inefficient, leading to delays. As networks handle more and more data, they need high-performance solutions to process traffic faster and more efficiently. What ...

Read More

Java program to read a large text file line by line

Saba Hilal
Saba Hilal
Updated on 08-Nov-2024 850 Views

This article includes the way to read text files line by line in Java. Here, the three different methods are explained with examples. Storing a file in text format is important especially when data from one structured /unstructured form is transferred to another form. Therefore, basic file transfer systems integrate the txt file reading and writing process as their application components. Therefore, how to use text file reading and writing methods is also important for making the parsers. Multiple Approaches The given problem statement is solved in three different approaches − By using the BufferedReader ...

Read More

Java program to print unique values from a list

AmitDiwan
AmitDiwan
Updated on 08-Nov-2024 2K+ Views

In this article, we will learn to print unique values from a List in Java. This program will use a loop-based approach to identify and display only the values that appear once, skipping any duplicates. This approach is helpful when working with datasets where you want to remove repeated items and focus on distinct entries. Problem Statement Write a program in Java to print unique values from a list. Below is a demostration of the same − Input 55, 67, 99, 11, 54, 55, 88, 99, 1, 13, 45 Output The distinct elements in the array are 55 67 99 11 ...

Read More
Showing 31711–31720 of 61,297 articles
Advertisements