Abhinanda Shri has Published 43 Articles

How can I use INTERVAL keyword with MySQL NOW() and CURDATE() functions?

Abhinanda Shri

Abhinanda Shri

Updated on 19-Jun-2020 13:46:05

2K+ Views

INTERVAL keyword with NOW() and CURDATE() MySQL functions can be used in similar fashion as it can be used with time, date or datetime units of a date value.ExampleUsing INTERVAL with MySQL NOW()mysql> Select NOW() + INTERVAL 2 day; +------------------------+ | NOW() + INTERVAL 2 day | +------------------------+ | 2017-10-30 ... Read More

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

Abhinanda Shri

Abhinanda Shri

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

728 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 can I put a Java arrays inside an array?

Abhinanda Shri

Abhinanda Shri

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

2K+ 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

5K+ 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

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

2K+ 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

400 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

How to create a multi-resolution favicon with GIMP?

Abhinanda Shri

Abhinanda Shri

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

2K+ 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

How to use a novalidate attribute in HTML?

Abhinanda Shri

Abhinanda Shri

Updated on 12-Mar-2020 12:21:10

432 Views

The novalidate attribute in HTML is used to signify that the form won’t get validated on submit. It is a Boolean attribute.You can try to run the following code to learn how to use novalidate attribute in HTML. In the following example, if you will add text in the ... Read More

Incremental Java infinite loop

Abhinanda Shri

Abhinanda Shri

Updated on 12-Mar-2020 12:18:35

239 Views

ExampleFollowing is the required program −Live Demopublic class Tester {    public static void main(String args[]) {       int i = 0;       do {          i++;          System.out.println(i);       }while (true);    } }The output will keep printing numbers in sequential order.

How to handle very large numbers in Python?

Abhinanda Shri

Abhinanda Shri

Updated on 05-Mar-2020 11:08:24

13K+ Views

You can perform arithmetic operations on large numbers in python directly without worrying about speed. Python supports a "bignum" integer type which can work with arbitrarily large numbers. In Python 2.5+, this type is called long and is separate from the int type, but the interpreter will automatically use whichever ... Read More

Advertisements