Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
Java program to display printable characters
In this article, we will learn to display printable characters in Java. The program uses ASCII code from 32 to 126, which correspond to printable symbols, numbers, and letters. Instead of using System.out.println(), we will use System.out.write() to print each character. Problem Statement Write a Java program that displays all printable characters by iterating through their ASCII values − Output Printable characters... ! " # $ % & '( ) * + , - . /0 1 2 3 4 5 6 78 9 : ; < = > ?@ A B C D E F GH I J K L M N OP Q R S T U V WX Y Z [ \ ] ^ _` a b c d e f gh i j k l m n op q r s t u v wx y z { | } ~ Steps to display printable characters Following are the steps to display printable characters − Start by printing the message "Printable characters...". Use a for loop to iterate over ASCII ...
Read MoreJava program to delete all even nodes from a singly linked list
In this article, we will learn to delete all even nodes from a singly linked list in Java. This Java program demonstrates how to create and manage a singly linked list, including adding nodes, deleting nodes with even values, and printing the list. You will see how to insert nodes, remove nodes with even values, and display the remaining nodes. A singly linked list consists of nodes where each node has two parts: one part stores the data, and the other part holds the address of the next node. This setup allows traversal in only one direction, as each node ...
Read MoreJava Program to Sort 2D Array Across Left Diagonal
For a given 2D array, our task is to write a Java program to sort its element present across the left diagonal. For this problem, we need to arrange the elements of the array in such a way that the values are sorted when read from the top left to the bottom right, which is the left diagonal of the array. Example Scenario: Input: matrix = {3, 8, 2}, {6, 5, 4}, {3, 2, 1}; Output: new_matrix = {1, 4, 2}, {2, 3, 8}, {3, 6, 5} Use the below sorting tool to understand the problem: Sorting Tool ...
Read MoreResponsive Sidebar with Dropdown Menu in React
You may have encountered responsive sidebars on one of your favorite websites. The web application feature offers users a convenient way to navigate by hosting dropdown menus. You can read this article to learn how to incorporate the responsive sidebar with a dropdown menu in React. Prerequisite The React project undertakings will require you to have the following things on your PC. You require a React environment, which means a working code editor ( I will use Visual Studio Code) and installation of the latest Node.js. Use the node -v command in your Nodejs to ...
Read MoreHow to approach any Machine Learning problem?
The process to approach any Machine Learning problem can be divided into the following steps − 1. Study, Understand, And Analyze the Problem Study the problem very well to understand what we have as a problem and what is our target model. Is it of type classification, clustering, regression, or reinforcement learning? Analyze the data and define the data type and determine the data classification. Is it structured data, unstructured data, time series data, or text data? This analysis is mandatory to select the correct algorithms and evaluation metrics. Then set the performance metric. This depends on the problem ...
Read MoreHow to create a multi-page website using React.js?
Building a website would require you to rely on templates that you would customize manually. Reusing the templates and tweaking the elements was preferable because it saves time that would otherwise be useful elsewhere. React offers a modern solution for developers to get their web applications running within the shortest time possible. Let us face it, it is rare to find web applications with only one page. Most web applications require two or more pages to serve their intended purpose to users. Single-Page Versus Multi-Page Website Here is the typical distinction between an SPA(Single-Page Application) and an MPA(Multipage ...
Read MoreDifference Between Data Science and Artificial Intelligence
In the current fast paced world where innovation in technology is the main focus two fields are mostly considered to have significant impacts. These are: "Data Science and Artificial Intelligence". Obviously, both of them are related to the concept of data, but their primary functions are dissimilar. Data Science deals with finding patterns in data for inference for problem solving whereas Artificial Intelligence makes use of that data for developing smart systems. So let’s define both concepts and then we will see how we can compare "Data Science and Artificial Intelligence" in terms of their essential components to figure out how ...
Read MoreJava program to get the difference between two time zones by seconds
In this article, we will learn to get the difference between two time zones by seconds using Java. We'll use LocalDateTime, ZoneId, and ZonedDateTime classes from java.time package to achieve this.Problem Statement Write a program in Java to get the difference between two time zones by seconds − Output Difference between two time zones in seconds = 28800 Steps to get the difference between two time zones by seconds Following are the steps to get the difference between two time zones by seconds − First, we will import the necessary classes LocalDateTime, ZoneId, and ZonedDateTime from ...
Read MoreJava program to add 3 months to the calendar
In this article, we will learn to add 3 months to the calendar. We will take the current date and add 3 months to it using Calendar class in Java. You’ll see how to handle date manipulation and update the date accordingly. Problem Statement Write a program in Java to add 3 months to the calendar. Below is the demonstration of the same − Input Current Date = Fri Nov 23 06:38:56 UTC 2018 Output Updated Date = Sat Feb 23 06:38:56 UTC 2019 Different approaches Below are the different approaches to add 3 months to the calendar − ...
Read MoreJava program to change JLabel text after creation
In this article, we will learn to change JLabel text after creation in Java. We'll cover two scenarios: changing the label text immediately after creation and updating it in response to a button click. Different approaches to change JLabel text after creation Below are the different approaches to change JLabel text after the creation − Using setText() Method Using a button click Update JLabel text using setText() method Following are the steps to update JLabel text immediately after creation − First we will import JFrame, JLabel, and ...
Read More