Srinivas Gorla has Published 81 Articles

Integrate node.js with SAP HANA system

Srinivas Gorla

Srinivas Gorla

Updated on 12-Mar-2020 12:31:12

248 Views

You can insert data into HANA database using node.js. You can also connect to SAP HANA database via JDBC driver.To connect via JDBC, you need to install JDBC driver ngdbc.jar. This driver is installed as part of SAP HANA client installation. Ngdbc.jar file is available at this location −C:\Program Files\sap\hdbclient\ ... Read More

How to style multi-line conditions in 'if' statements in Python?

Srinivas Gorla

Srinivas Gorla

Updated on 05-Mar-2020 07:43:05

1K+ Views

There are many ways you can style multiple if conditions. You don't need to use 4 spaces on your second conditional line. So you can use something like &minusl;if (cond1 == 'val1' and cond2 == 'val2' and     cond3 == 'val3' and cond4 == 'val4'):# Actual codeYou can also ... Read More

How to specify the kind of text track in HTML?

Srinivas Gorla

Srinivas Gorla

Updated on 03-Mar-2020 09:59:14

65 Views

Use the kind attribute in HTML to specify the kind of text track in HTML. For example, you can set the kind as subtitles for subtitle files.ExampleYou can try to run the following code to implement the kind attribute −                                                            Your browser does not support the video element.          

How to include content to be presented by browsers that do not support the tag in HTML?

Srinivas Gorla

Srinivas Gorla

Updated on 03-Mar-2020 06:00:35

49 Views

The HTML tag is used to handle browsers which do not support the tag. The tag makes it easy to supply alternative content that tells users what they are missing.Example           HTML noembed Tag                                  

How to add text tracks used in media players in HTML5?

Srinivas Gorla

Srinivas Gorla

Updated on 02-Mar-2020 12:33:51

201 Views

Use the tag in HTML5 to add text tracks used in media players. You can try to run the following code to learn how to add text tracks used in media players in HTML5 −Example                                                            Your browser does not support the video element.          

How to build an ant file for a Java Eclipse project?

Srinivas Gorla

Srinivas Gorla

Updated on 25-Feb-2020 12:30:47

4K+ Views

Follow the steps given below, to integrate Ant into Eclipse.Make sure that the build.xml is a part of your java project, and does not reside at a location that is external to the project.Enable Ant View by following Window > Show View > Other > Ant > Ant.Open Project Explorer, ... Read More

What does the method removeRange(int fromIndex, int toIndex) do in java?

Srinivas Gorla

Srinivas Gorla

Updated on 20-Feb-2020 12:24:27

62 Views

The removeRange() method of the ArrayList class removes all of the elements from this List whose index is between fromIndex and toIndex.Exampleimport java.util.*; public class ArrayListDemo extends ArrayList{    public static void main(String[] args) {       ArrayListDemo arrlist = new ArrayListDemo();       arrlist.add(10);       arrlist.add(12);   ... Read More

What does the method isEmpty() do in java?

Srinivas Gorla

Srinivas Gorla

Updated on 20-Feb-2020 12:17:27

104 Views

The isEmpty() method of the class java.util.ArrayList returns true if this list contains no elements.Exampleimport java.util.ArrayList; public class ArrayListDemo {    public static void main(String[] args) {       ArrayList arrlist = new ArrayList(5);       arrlist.add(25);       arrlist.add(10);       arrlist.add(20);       arrlist.add(35);   ... Read More

What are variable length (Dynamic) Arrays in Java?

Srinivas Gorla

Srinivas Gorla

Updated on 19-Feb-2020 12:12:03

3K+ Views

In Java, Arrays are of fixed size. The size of the array will be decided at the time of creation. But if you still want to create Arrays of variable length you can do that using collections like array list.Exampleimport java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; public class AddingItemsDynamically { ... Read More

How to convert an object to byte array in java?

Srinivas Gorla

Srinivas Gorla

Updated on 19-Feb-2020 10:56:04

12K+ Views

To convert an object to byte arrayMake the required object serializable by implementing the Serializable interface.Create a ByteArrayOutputStream object.Create an ObjectOutputStream object by passing the ByteArrayOutputStream object created in the previous step.Write the contents of the object to the output stream using the writeObject() method of the ObjectOutputStream class.Flush the ... Read More

Previous 1 ... 3 4 5 6 7 ... 9 Next
Advertisements