Karthikeya Boyini has Published 2193 Articles

Wrap the flex items with CSS

karthikeya Boyini

karthikeya Boyini

Updated on 25-Jun-2020 10:29:20

160 Views

To wrap the flex items, use the flex-wrap property. You can try to run the following code to implement the flex-wrap propertyExampleLive Demo                    .mycontainer {             display: flex;             ... Read More

DataView.getInt32() function in JavaScript

karthikeya Boyini

karthikeya Boyini

Updated on 25-Jun-2020 10:28:49

97 Views

The getInt32() function of the DataView gets and returns a signed 32-bit integer at the specified position.SyntaxIts syntax is as followsdataView.getInt32();Example Live Demo    JavaScript Example           var arrayBuffer = new ArrayBuffer(20);       var dataView = new DataView(arrayBuffer);       dataView.setInt32(1, ... Read More

DataView.getUint32() function in JavaScript

karthikeya Boyini

karthikeya Boyini

Updated on 25-Jun-2020 10:26:40

74 Views

The getUint32() function of the DataView gets and returns an unsigned 32-bit integer at the specified position.SyntaxIts syntax is as followsdataView.getUint32();Example Live Demo    JavaScript Example           var arrayBuffer = new ArrayBuffer(20);       var dataView = new DataView(arrayBuffer);       dataView.setUint32(1, ... Read More

Get the asymmetric difference of two sets in Java

karthikeya Boyini

karthikeya Boyini

Updated on 25-Jun-2020 10:26:24

693 Views

Use removeAll() method to get the asymmetric difference of two sets.First set −HashSet set1 = new HashSet (); set1.add("Mat"); set1.add("Sat"); set1.add("Cat");Second set −HashSet set2 = new HashSet (); set2.add("Mat");To get the asymmetric difference −set1.removeAll(set2);The following is an example that displays how to get the asymmetric difference between two ... Read More

DataView.setInt16() function in JavaScript

karthikeya Boyini

karthikeya Boyini

Updated on 25-Jun-2020 10:25:08

64 Views

The setInt16() function of the DataView stores a signed 16-bit integer at the specified position.SyntaxIts syntax is as followsdataView.setInt16();Example Live Demo    JavaScript Example           var arrayBuffer = new ArrayBuffer(20);       var dataView = new DataView(arrayBuffer);       dataView.setInt16(1, 3225);   ... Read More

DataView.setInt8() function in JavaScript

karthikeya Boyini

karthikeya Boyini

Updated on 25-Jun-2020 10:23:25

49 Views

The setInt8() function of the DataView stores a signed 8-bit floating point number at the specified position.SyntaxIts syntax is as followsdataView.setInt8();Example Live Demo    JavaScript Example           var arrayBuffer = new ArrayBuffer(20);       var dataView = new DataView(arrayBuffer);       dataView.setInt8(1, ... Read More

DataView.setUint32() function in JavaScript

karthikeya Boyini

karthikeya Boyini

Updated on 25-Jun-2020 10:22:03

70 Views

The setUint32() function of the DataView stores an unsigned 32-bit integer at the specified position.SyntaxIts syntax is as followsdataView.setUint32();Example Live Demo    JavaScript Example           var arrayBuffer = new ArrayBuffer(20);       var dataView = new DataView(arrayBuffer);       dataView.setUint32(1, 45544);   ... Read More

DataView.byteLength property in JavaScript

karthikeya Boyini

karthikeya Boyini

Updated on 25-Jun-2020 10:18:46

137 Views

The byteLength property of the DataView represents the length of the current Data View.SyntaxIts syntax is as followsdataView.byteLength();Example Live Demo    JavaScript Example           var arrayBuffer = new ArrayBuffer(8);       var dataView = new DataView(arrayBuffer);       document.write(dataView.byteLength);     Output8

DataView.buffer property in JavaScript

karthikeya Boyini

karthikeya Boyini

Updated on 25-Jun-2020 10:17:40

154 Views

The buffer property of the DataView represents the ArrayBuffer of the current DataView.SyntaxIts syntax is as followsdataView.buffer;ExampleTry the following example. Live Demo    JavaScript Example           var arrayBuffer = new ArrayBuffer(156);       var dataView = new DataView(arrayBuffer);       document.write(dataView.buffer.byteLength);     Output156

Java program to extract ‘k’ bits from a given position

karthikeya Boyini

karthikeya Boyini

Updated on 25-Jun-2020 10:04:23

543 Views

Extraction of k bits from the given position in a number involves converting the number into its binary representation. An example of this is given as follows −Number = 20 Binary representation = 10100 k = 3 Position = 2 The bits extracted are 010 which represent 2.A program that ... Read More

Advertisements