Srinivas Gorla has Published 75 Articles

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

70 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

224 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

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

74 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

120 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

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

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

While using SAP .NET connector, I am an getting error: Could not load file or assembly 'sapnco' or one of its dependencies.

Srinivas Gorla

Srinivas Gorla

Updated on 14-Feb-2020 04:47:22

1K+ Views

You can try any of the below fixes −Go to Run > RegeditOpen “HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\1X.0\WebProjects” and change Use64BitIISExpress from 0 → 1Next is to restart Visual Studio and IISExpress.Other solution would be to try configuring IIS service, and set appPool .Net 4.0. You can try this to fix sapnco dll issue.Go ... Read More

Is it possible to delete the actives while you are running a loop over an internal table in SAP ABAP?

Srinivas Gorla

Srinivas Gorla

Updated on 13-Feb-2020 10:07:31

655 Views

DELETE command will have a result. You should make sure that once you delete the row, there should not be any reference or use of row subsequently in the loop. The best is to use CONTINUE as soon as you perform deletion. I will suggest avoiding “DELETE lt_itab INDEX sy-tabix” because ... Read More

How can we create MySQL stored procedure to calculate the factorial?

Srinivas Gorla

Srinivas Gorla

Updated on 13-Feb-2020 06:13:37

330 Views

mysql> DELIMITER // mysql> CREATE PROCEDURE get_factorial(IN N INT)     -> BEGIN     ->    SET @@GLOBAL.max_sp_recursion_depth = 255;     ->    SET @@session.max_sp_recursion_depth = 255;     ->     ->    CALL factorial_recursive (N, @factorial);     ->     ->    SELECT @factorial;   ... Read More

Advertisements