Govinda Sai has Published 44 Articles

How to add an inline layer in HTML?

Govinda Sai

Govinda Sai

Updated on 03-Mar-2020 06:18:41

431 Views

Use the tag to add an inline layer. The HTML tag is used to create a layer that occupies space in the containing text flow. Subsequent content is placed after the space occupied by the .This is in contrast to the tag, which creates a layer above ... Read More

What does the method ensureCapacity(int, minCapacity) do in java?

Govinda Sai

Govinda Sai

Updated on 25-Feb-2020 10:10:30

187 Views

The ensureCapacity(int minCapacity) method of the class java.util.ArrayList increases the capacity of this ArrayList instance, if necessary, to ensure that it can hold at least the number of elements specified by the minimum capacity argument.Exampleimport java.util.ArrayList; public class ArrayListDemo {    public static void main(String args[]) {       ArrayList ... Read More

How to force Chrome's script debugger to reload JavaScript?

Govinda Sai

Govinda Sai

Updated on 21-Feb-2020 12:43:45

4K+ Views

To force Google Chrome’s script debugger to reload JavaScript, follow the below steps −Open Dev ToolsClick on the Sources tabFind your script / image / fileCheck the right panel to see if your file is up to dateIf the file is not up to date, then −Right-click the resource in the ... Read More

How to remove a specific element from a JSON Array in Java?

Govinda Sai

Govinda Sai

Updated on 19-Feb-2020 12:25:46

15K+ Views

You can remove an element from the JSONArray object using the remove() method. This method accepts an integer and removes the element in that particular index.Exampleimport org.json.JSONArray; public class RemoveFromJsonArray {    public static void main(String args[]) throws Exception {       String [] myArray = {"JavaFX", "HBase", "JOGL", ... Read More

How to read a 2d array from a file in java?

Govinda Sai

Govinda Sai

Updated on 19-Feb-2020 11:20:12

11K+ Views

A 2d array is an array of one dimensional arrays to read the contents of a file to a 2d array –Instantiate Scanner or other relevant class to read data from a file. Create an array to store the contents.To copy contents, you need two loops one nested within the other. ... Read More

Using method getBPLIST() to get list of all orders in SAP Business One

Govinda Sai

Govinda Sai

Updated on 14-Feb-2020 10:01:47

565 Views

I would suggest using recordset with DI API −SAPbobsCOM.Recordset rs = ((SAPbobsCOM.Company)oCompany.GetDICompany()).GetBusinessObject(BoObjectTypes.BoRecordset); rs.DoQuery("SELECT DocEntry, DocNum, DocDate, TaxDate, CardCode, CardName, DocTotal    FROM OPOR ORDER BY DocDate ASC"); while (!rs.EoF) {    int DocEntry = rs.Fields.Item("DocEntry").Value;    //OR    DocEntry = rs.Fields.Item(0).Value;    rs.MoveNext(); }Read More

Compound Assignment Operators in C++

Govinda Sai

Govinda Sai

Updated on 11-Feb-2020 05:10:31

4K+ Views

The compound assignment operators are specified in the form e1 op= e2, where e1 is a modifiable l-value not of const type and e2 is one of the following −An arithmetic typeA pointer, if op is + or –The e1 op= e2 form behaves as e1 = e1 op e2, ... Read More

How can we upload the changed value, rather than written in a text file, of column(s) while importing that text file into MySQL table?

Govinda Sai

Govinda Sai

Updated on 06-Feb-2020 05:58:41

150 Views

Suppose if we want to upload the changed value rather than the value written in a text file then we need to use user variables along with the SET command. It can be understood with the help of the following example −ExampleSuppose we are having the following data in ‘A.txt’ ... Read More

HTML5 using src using raw binary data

Govinda Sai

Govinda Sai

Updated on 30-Jan-2020 06:52:52

1K+ Views

If an audio file is stored in database and then we want to use this file as a blob or binary in an application where audio source is according to session then binary data is returned through ${sessionScope.user.music}. To load the audio file in an audio tag, data:audio/mp3;base64 works well.As ... Read More

How can we create a MySQL function to find out the duration of years, months, days, hours, minutes and seconds?

Govinda Sai

Govinda Sai

Updated on 30-Jan-2020 06:18:59

404 Views

Following is a MySQL function which calculates the duration in years, months, days, hours, minutes and seconds between two dates.mysql> DROP FUNCTION IF EXISTS Duration; Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> DROP FUNCTION IF EXISTS Label123; Query OK, 0 rows affected, 1 warning (0.00 sec) ... Read More

Advertisements