Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by Jai Janardhan
Page 2 of 5
How to create a table caption with JavaScript DOM?
To create a table caption using JavaScript DOM, use the createCaption() method on a table element. This method adds a element to the table, which displays as a title above the table content. Syntax table.createCaption() Return Value Returns the newly created element, which can be styled or modified with text content. Example Here's how to create a table caption dynamically using JavaScript: function captionFunc(x) { ...
Read MoreHow to set the favicon size in CSS rather than HTML attributes?
A favicon is a small icon visible on the web browser tab, just before the page title. It is generally a logo with a smaller size representing your website's brand. Setting Favicon Size You cannot set the favicon size using CSS properties. The web standards do not support controlling favicon dimensions through CSS. Instead, you must specify the size using HTML attributes in the element. Syntax Example: Adding Favicon with Size Attribute The following example shows how to properly add a favicon with specified dimensions using HTML attributes − ...
Read MoreFinding and modifying Service File for SAP system in root directory
You can find the SAP system service file in %SystemRoot%\system32\drivers\etc where %SystemRoot% is generally your C:\ drive. This file is commonly known as the hosts file or services file, which contains network service definitions and host mappings for SAP system connections. Modifying the Service File To modify this file, you can right-click and open this file in Edit mode using Notepad. To perform this operation, you must have Administrator rights in the system, as this file is protected by Windows security settings. ...
Read MoreUsing Breakpoint in SAP system
In SAP systems, breakpoints are used to pause program execution at specific points during debugging. There are two main ways to implement breakpoints in your ABAP code. Syntax For user-specific breakpoints, use the following syntax − BREAK username. If you want to implement it for all users, you can use − BREAK-POINT. User-Specific Breakpoint The BREAK username statement creates a breakpoint that only activates when the ...
Read MoreViewing field names or tables names of the forms in SAP Business One
It is possible that the older version of SAP B1 may not show you all the fields of all the forms. If you have the latest version, you should be able to see the data sources that are mapped to given field. You need to open the forms in SAP Business One Studio. There are a couple of methods to view fields. Method 1: Using SAP Business One Studio Integration This method allows you to directly edit forms from within SAP Business One using the integrated Visual Studio environment ...
Read MoreDemonstrate static variables, methods and blocks in Java
The static variable is a class level variable and it is common to all the class objects i.e. a single copy of the static variable is shared among all the class objects.A static method manipulates the static variables in a class. It belongs to the class instead of the class objects and can be invoked without using a class object.The static initialization blocks can only initialize the static instance variables. These blocks are only executed once when the class is loaded.A program that demonstrates this is given as follows:Examplepublic class Demo { static int x = 10; static ...
Read MoreHow to use the asList() method of the Arrays class to create a Vector object
A Vector can be created from an Array using the java.util.Arrays.asList() method.A program that demonstrates this is given as follows:Exampleimport java.util.Arrays; import java.util.Vector; public class Demo { public static void main(String args[]) { Integer[] arr = { 3, 1, 9, 6, 4, 8, 7 }; Vector vec = new Vector(Arrays.asList(arr)); System.out.println("The Vector elements are: " + vec); } }OutputThe Vector elements are: [3, 1, 9, 6, 4, 8, 7]Now let us understand the above program.The Integer Array arr[] is defined. Then a Vector is created using the Arrays.asList() ...
Read MoreCreating a Multilevel Inheritance Hierarchy in Java
Inheritance involves an object acquiring the properties and behaviour of another object. So basically, using inheritance can extend the functionality of the class by creating a new class that builds on the previous class by inheriting it.Multilevel inheritance is when a class inherits a class which inherits another class. An example of this is class C inherits class B and class B in turn inherits class A.A program that demonstrates a multilevel inheritance hierarchy in Java is given as follows:Exampleclass A { void funcA() { System.out.println("This is class A"); } } class B extends A ...
Read MoreWhat is Default access level in Java?
The default access level is available when no access level is specified. All the classes, data members, methods etc. which have the default access level can only be accessed inside the same package.A program that demonstrates the default access level in Java is given as follows:Exampleclass Employee { int empno; String name; void insert(int e, String n) { empno = e; name = n; } void display() { System.out.println("Employee Number: " + empno); System.out.println("Name: " + name); } } public class Demo ...
Read MoreLoop through the Vector elements using an Iterator in Java
An Iterator can be used to loop through the Vector elements. The method hasNext( ) returns true if there are more elements in the Vector and false otherwise. The method next( ) returns the next element in the Vector and throws the exception NoSuchElementException if there is no next element.A program that demonstrates this is given as follows −Exampleimport java.util.Iterator; import java.util.Vector; public class Demo { public static void main(String args[]) { Vector vec = new Vector(); vec.add(4); vec.add(1); vec.add(3); vec.add(9); ...
Read More