Monica Mona has Published 85 Articles

What is a Multidimensional array in Java?

Monica Mona

Monica Mona

Updated on 07-Mar-2024 16:48:43

2K+ Views

In Java, a multi-dimensional array is nothing but an array of arrays.2D array − A two-dimensional array in Java is represented as an array of one-dimensional arrays of the same type. Mostly, it is used to represent a table of values with rows and columns −Int[][] myArray = {{10, 20, ... Read More

Algorithms and Complexities

Monica Mona

Monica Mona

Updated on 01-Nov-2023 14:23:31

33K+ Views

AlgorithmAn algorithm is a finite set of instructions, those if followed, accomplishes a particular task. It is not language specific, we can use any language and symbols to represent instructions.The criteria of an algorithmInput: Zero or more inputs are externally supplied to the algorithm.Output: At least one output is produced ... Read More

How to make text bold in HTML?

Monica Mona

Monica Mona

Updated on 06-Sep-2023 14:16:19

37K+ Views

To make text bold in HTML, use the … tag or … tag. Both the tags have the same functioning, but tag adds semantic strong importance to the text. The tag is a physical markup element, but do not add semantic importance.Just keep in mind that you can ... Read More

Kth Largest Element in an Array

Monica Mona

Monica Mona

Updated on 04-Jan-2023 18:04:51

790 Views

From a set of data, this algorithm will find the largest element to kth largest element of the array.This problem can be solved easily by sorting the array. We can sort them either in ascending order or in descending order. Solving it in descending order, we can get first k ... Read More

How to set all the outline properties in one declaration with JavaScript?

Monica Mona

Monica Mona

Updated on 23-Jun-2020 13:23:32

86 Views

To set outline properties, use the outline property. It allows you to set the color, style, and offset of the outline.ExampleYou can try to run the following code to set all the outline properties in one declaration with JavaScript −Live Demo               ... Read More

How to set an image as the list-item marker with JavaScript?

Monica Mona

Monica Mona

Updated on 23-Jun-2020 13:21:08

114 Views

To set an image as the marker in list-item, use the listStyleImage property in JavaScript.ExampleYou can try to run the following code to set an image as the list-item marker with JavaScript −Live Demo                    One         ... Read More

How to set the horizontal alignment of an element with JavaScript?

Monica Mona

Monica Mona

Updated on 23-Jun-2020 12:34:52

176 Views

To align the element horizontally, use the cssFloat property.ExampleYou can try to run the following code to set the horizontal alignment of an element with JavaScript −Live Demo                 This is Demo Text. This is Demo Text. This is Demo Text. ... Read More

How to set the width of the rule between columns with JavaScript?

Monica Mona

Monica Mona

Updated on 23-Jun-2020 12:18:22

58 Views

Use the columnRuleWidth property to set the width between columns. You can try to run the following code to set the width of the rule between columns with JavaScript −ExampleLive Demo                    #myID {             ... Read More

Set whether or not an element should be visible while not facing the screen with JavaScript?

Monica Mona

Monica Mona

Updated on 23-Jun-2020 12:03:19

102 Views

Use the JavaScript backfaceVisibility property to set whether or not an element should be visible while not facing the screen.ExampleYou can try to run the following code to learn how to implement a backfaceVisibility property in JavaScript −Live Demo                   ... Read More

How to set all the border top properties in one declaration with JavaScript?

Monica Mona

Monica Mona

Updated on 23-Jun-2020 11:38:38

173 Views

To set all the border top properties in a single declaration, use the borderTop property. With this property, you can set the border-top-width, border-top-style, and border-top-color property.ExampleYou can try to run the following code to learn how to work with border-top properties in JavaScript −Live Demo       ... Read More

1 2 3 4 5 ... 9 Next
Advertisements