AmitDiwan has Published 10744 Articles

Java program to iterate through each character of the string.

AmitDiwan

AmitDiwan

Updated on 29-Sep-2024 02:48:31

2K+ Views

In this article, we will understand how to iterate through each character of the string using Java. The string is a datatype that contains one or more characters and is enclosed in double quotes (“ ”). Char is a datatype that contains an alphabet an integer or a special character. ... Read More

How to sort an ArrayList in ascending order in Java

AmitDiwan

AmitDiwan

Updated on 29-Sep-2024 02:48:17

1K+ Views

In this article, we will learn how to sort an ArrayList in ascending order using Java. Sorting allows us to arrange elements in a specific order. We will use the Collections.sort() method, which simplifies sorting, whether you're dealing with integers or strings. The program will demonstrate sorting an ArrayList of ... Read More

Java program to find the area of a Trapezium

AmitDiwan

AmitDiwan

Updated on 29-Sep-2024 02:48:03

840 Views

In this article, we will understand how to find the area of a trapezium using Java. The trapezium is a type of quadrilateral that has at least one pair of sides parallel to each other. The parallel sides of a trapezium are called bases and the non-parallel sides of a ... Read More

Changing Layouts Based on Screen Size using CSS

AmitDiwan

AmitDiwan

Updated on 25-Sep-2024 10:30:37

17K+ Views

To change layouts based on screen size in CSS, we will create a parent div and wrap other children divs within it. Using Media Queries, the layout of the screen size will be changed. Media Queries is used when you need to set a style to different devices such as ... Read More

How to read JSON file in JavaScript?

AmitDiwan

AmitDiwan

Updated on 24-Sep-2024 17:19:28

5K+ Views

There are three effective methods to read JSON files in JavaScript using fetch(), import statements, and require(). Please check this article which includes examples and outputs with the approach explanation. JSON (JavaScript Object Notation) is a lightweight data interchange format that's easy for humans to read and write and ... Read More

Overlapping Elements with Z-Index using CSS

AmitDiwan

AmitDiwan

Updated on 24-Sep-2024 17:00:48

12K+ Views

Overlapping elements with z-index using CSS, we will be understanding about two different ways to handle overlapping which are by using positive and negative z-index value. CSS z-index property allows user to stack elements onto one another. In this article, we are haveing three div boxes each with different colors, ... Read More

How to append HTML code to a div using JavaScript?

AmitDiwan

AmitDiwan

Updated on 23-Sep-2024 17:32:42

19K+ Views

To append HTML code to a div using JavaScript, we will be using HTML DOM methods and property. We have discussed four different approaches in this article with stepwise explaination and complete example codes. In this article, we are having a div with id container and our task is to ... Read More

Java program to print a collection

AmitDiwan

AmitDiwan

Updated on 20-Sep-2024 21:42:34

912 Views

In this article, we will understand how to print a collection in Java. The Collection is a framework that provides architecture to store and manipulate the group of objects. Java Collections can achieve all the operations that you perform on a data such as searching, sorting, insertion, manipulation, and deletion. ... Read More

Java program to print distinct permutations of a string

AmitDiwan

AmitDiwan

Updated on 19-Sep-2024 21:57:13

890 Views

In this article, we will learn how to generate and print all distinct permutations of a given string using Java. Permutations are rearrangements of characters in a string, and this program will ensure that no duplicate permutations are printed. The method works by checking each rearrangement and avoiding any repeats. ... Read More

How to apply CSS to iframe?

AmitDiwan

AmitDiwan

Updated on 12-Sep-2024 10:47:12

9K+ Views

To apply CSS to iframe, is a very simple process. We can add CSS to iframe using all the three methods of adding CSS to any document. We will be understanding three approaches to apply CSS to iframe which are by using inline CSS, internal CSS and external CSS. In ... Read More

Previous 1 ... 5 6 7 8 9 ... 1075 Next
Advertisements