Sai Subramanyam has Published 113 Articles

How to mark strikethrough text in HTML?

Sai Subramanyam

Sai Subramanyam

Updated on 29-Dec-2021 07:28:48

To mark strikethrough text in HTML, use the … tag. It renders a strikethrough text. HTML deprecated this tag and it shouldn’t be used in HTML5. As an alternative, use the CSS text-decoration property.To use the CSS property, use the style attribute. The style attribute specifies an inline style for ... Read More

How to draw a Bezier Curve with HTML5 Canvas?

Sai Subramanyam

Sai Subramanyam

Updated on 16-Dec-2021 10:18:06

The HTML5 tag is used to draw graphics, animations, etc. using scripting. It is a new tag introduced in HTML5. The canvas element has a DOM method called getContext, which obtains rendering context and its drawing functions. This function takes one parameter, the type of context 2d.To draw a ... Read More

The Modulation and Multiplexing

Sai Subramanyam

Sai Subramanyam

Updated on 02-Jul-2020 13:07:43

ModulationModulation is the process of transforming a carrier signal so that it can carry the information of a message signal. It superimposes the contents of the message signal over a high-frequency carrier signal, which is then transmitted over communication channels.Modulation can be of two types −Analog ModulationDigital ModulationAnalog ModulationHere, the ... Read More

Java Program to convert String to Double

Sai Subramanyam

Sai Subramanyam

Updated on 26-Jun-2020 09:02:04

To convert String to Double in Java, you can use the following three examples. Two of them are using in-built methods parseDouble() and valueOf(). However, one of the method isn’t using a method.Let us work through them one by one.The following is an example to convert String to Double without ... Read More

How to set the maximum height of an element with JavaScript?

Sai Subramanyam

Sai Subramanyam

Updated on 23-Jun-2020 13:20:09

Use the maxHeight property in JavaScript to set the maximum height. You can try to run the following code to set the maximum height of an element with JavaScript −ExampleLive Demo    #box {       width: 300px;       background-color: gray;       ... Read More

C# int.Parse Method

Sai Subramanyam

Sai Subramanyam

Updated on 23-Jun-2020 07:14:09

Convert a string representation of number to an integer, using the int.Parse method in C#. If the string cannot be converted, then the int.Parse method returns an exceptionLet’s say you have a string representation of a number.string myStr = "200";Now to convert it to an integer, use the int.Parse(). It ... Read More

How BEFORE UPDATE triggers can be used to emulate CHECK CONSTRAINTfor updating values in the table?

Sai Subramanyam

Sai Subramanyam

Updated on 22-Jun-2020 12:59:22

As we know that MySQL supports foreign key for referential integrity but it does not support CHECK constraint. But we can emulate them by using triggers. It can be illustrated with the help of an example given below −ExampleSuppose we have a table named ‘car’ which can have the fix ... Read More

How to sort an array of objects containing null elements in java?

Sai Subramanyam

Sai Subramanyam

Updated on 16-Jun-2020 11:50:33

Whenever we try to sort elements with null values using the sort method it throws an exception.The sort() method of the Arrays class also accepts a Comparator along with the array. Using comparator, you need to specify the order in which the elements need to be sorted.Using this method push ... Read More

How to convert an array to a list in Java?

Sai Subramanyam

Sai Subramanyam

Updated on 16-Jun-2020 11:09:45

The Arrays class of the java.util package provides you a method named asList(). This method accepts an array (of objects) and converts them into a list and returns it.ExampleLive Demoimport java.util.Arrays; import java.util.List; public class ArrayToList {    public static void main(String args[]) {       Integer[] myArray = ... Read More

How to create and populate two-dimension Java array?

Sai Subramanyam

Sai Subramanyam

Updated on 16-Jun-2020 09:53:19

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 −Example Live Demopublic class Creating2DArray { public static void main(String args[]) { int[][] myArray = new int[3][3]; myArray[0][0] = ... Read More

1 2 3 4 5 ... 12 Next
Advertisements