Abhinanda Shri has Published 74 Articles

How to get current date/time in seconds in JavaScript?

Abhinanda Shri

Abhinanda Shri

Updated on 18-Jun-2020 12:00:07

528 Views

To convert time in seconds, firstly get the current time. Then, multiply the hours to 3600 and minutes to 60; rest you can see below −(hours*3600) + (min*60) + secExampleYou can try to run the following code to get the current time in seconds −Live Demo         ... Read More

How to reverse the order of a JavaScript array?

Abhinanda Shri

Abhinanda Shri

Updated on 18-Jun-2020 08:18:32

239 Views

To reverse the order of a JavaScript array, use the JavaScript array() method. JavaScript array reverse() method reverses the elements of an array. The first array element becomes the last and the last becomes the first.ExampleYou can try to run the following code to reverse the order of a JavaScript ... Read More

How can I put a Java arrays inside an array?

Abhinanda Shri

Abhinanda Shri

Updated on 16-Jun-2020 10:11:04

1K+ Views

ExampleLive Demoimport java.util.Arrays; public class ArrayWithinAnArray{    public static void main(String args[]) {       int[] myArray1 = {23, 56, 78, 91};       int[] myArray2 = {123, 156, 178, 191};       int[] myArray3 = {223, 256, 278, 291};       int[] myArray4 = {323, 356, 378, 391};       int [][] arrayOfArrays = {myArray1, myArray2, myArray3, myArray4};       System.out.println(Arrays.deepToString(arrayOfArrays));    } }Output[[23, 56, 78, 91], [123, 156, 178, 191], [223, 256, 278, 291], [323, 356, 378, 391]]

How to create an array of linked lists in java?

Abhinanda Shri

Abhinanda Shri

Updated on 16-Jun-2020 09:02:50

3K+ Views

A linked list is a sequence of data structures, which are connected together via links.To create an array of linked lists, create required linked lists and, create an array of objects with them.ExampleLive Demoimport java.util.LinkedList; public class ArrayOfLinkedList {    public static void main(String args[]) {       ... Read More

How to implement basic Animation in JavaScript?

Abhinanda Shri

Abhinanda Shri

Updated on 16-Jun-2020 06:25:09

79 Views

To implement basic Animation in JavaScript, use the DOM object properties and JavaScript. The following list contains different DOM methods.We are using the JavaScript function getElementById() to get a DOM object and then assigning it to a global variable imgObj.We have defined an initialization function init() to an initialize imgObj where we ... Read More

Getting error- is not an internal table “OCCURS n” specification is missing in SAP method

Abhinanda Shri

Abhinanda Shri

Updated on 13-Jun-2020 06:08:18

1K+ Views

You need to define the et_flights parameter as of type SFLIGHT. As per method defined, you have this type as structure type and also declare transparent table SFLIGHT at the same time.You should use an already available dictionary table type with row structure of SFLIGHT for et_flight.You should declare et_flights ... Read More

What is the usage of onsearch event in JavaScript?

Abhinanda Shri

Abhinanda Shri

Updated on 22-May-2020 11:28:01

232 Views

The onsearch event is useful for search i.e. a user press ENTER or “x” key in input element. The type for is search, since it is for users to search. The onsearch event isn’t supported in Internet Explorer, Firefox, and Opera.ExampleYou can try to run the following code to ... Read More

Match any string containing a sequence of at least two p's.

Abhinanda Shri

Abhinanda Shri

Updated on 20-May-2020 07:53:10

72 Views

To match any string containing a sequence of at least two p’s with JavaScript RegExp, use the p{2,} Quantifier.Example           JavaScript Regular Expression                        var myStr = "Welcome 1, 10, 100, 1000";          var reg = /\d{2,}/g;          var match = myStr.match(reg);          document.write(match);          

What is the role of ignoring Case RegExp property in JavaScript?

Abhinanda Shri

Abhinanda Shri

Updated on 19-May-2020 11:06:36

32 Views

ignoreCase is a read-only boolean property of RegExp objects. It specifies whether a particular regular expression performs case-insensitive matching, i.e., whether it was created with the "i" attribute.ExampleYou can try to run the following code to learn how to work with Ignore Case RegExp property in JavaScript.       ... Read More

How to create a multi-resolution favicon with GIMP?

Abhinanda Shri

Abhinanda Shri

Updated on 12-Mar-2020 12:24:07

1K+ Views

Favicons are generally 16x16, but these days we can multi-resolution favicons also. To create a multi-resolution favicon, first, you need to create the highest-resolution version of the favicon, with an image of 256 × 256 px. Reduce the size of multiple resolutions and export, 16x16, 32x32.Open GIMP and from the ... Read More

Advertisements