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
Articles by Abhinanda Shri
Page 3 of 5
How to specify the URL of the page the link goes to in HTML?
Use the href attribute to specify the URL of the page the link goes to in HTML.ExampleYou can try to run the following code to implement href attribute − HTML href attribute Tutorials Point Library of Tutorials
Read MoreSet the language of the track text data in HTML
Use the srclang attribute to set the language of the track text data in HTML. For subtitles, use this attribute.ExampleYou can try to run the following code to implement srlang attribute − Your browser does not support the video element.
Read MoreHow to get the value associated with the http-equiv or name attribute in HTML?
Use the content attribute in HTML to get the value associated with http-equiv or name attribute.ExampleYou can try to run the following code to implement the content attribute − This is demo text.
Read MoreHow to set the script to be executed asynchronously in HTML?
Use the async attribute to set the script to execute asynchronously as and when it is available. It only uses the external script.Firstly, add a js file. Let us give it a name, new.js,function sayHello() { alert("Hello World") }Let’s add the HTML code now and execute the above script − This is demo text.
Read MoreJava string case change sample code examples.
You can change the cases using the toUpperCase() and toLowerCase() methods of the String class.ExampleLive Demopublic class Sample { public static void main(String args[]){ String str = "Hello how are you"; String strUpper = str.toUpperCase(); System.out.println("Lower to upper : "+strUpper); String strLower = str.toLowerCase(); System.out.println("Upper to lower : "+strLower); } }OutputLower to upper : HELLO HOW ARE YOU Upper to lower : hello how are you
Read MoreHow to split a Java String into tokens with StringTokenizer?
The hasMoreTokens() method is used to test if there are more tokens available from this tokenizer's string.ExampleLive Demoimport java.util.*; public class StringTokenizerDemo { public static void main(String[] args) { // creating string tokenizer StringTokenizer st = new StringTokenizer("Come to learn"); // checking elements while (st.hasMoreElements()) { System.out.println("Next element : " + st.nextElement()); } } }OutputNext element : Come Next element : to Next element : learn
Read MoreWhat does the method set(int, obj o) do in java?
The set() method of the ArrayList class replaces the element at the specified position in this list with the specified element.Exampleimport java.util.ArrayList; public class Sample { public static void main(String args[]) { ArrayList al = new ArrayList(); System.out.println("Initial size of al: " + al.size()); al.add("C"); al.add("A"); al.add("E"); al.add(1, "A2"); System.out.println("Size of al after additions: " + al.size()); System.out.println("Contents of al: " + al); System.out.println("Size of al after deletions: " + al.size()); ...
Read MoreWhat does the method size() do in java?
The size() method of the class java.util.ArrayList returns the number of elements in this list i.e. the size of the list.Exampleimport java.util.ArrayList; public class ArrayListDemo { public static void main(String[] args) { ArrayList arrlist = new ArrayList(5); arrlist.add(15); arrlist.add(20); arrlist.add(25); arrlist.add(22); for (Integer number : arrlist) { System.out.println("Number = " + number); } int retval = arrlist.size(); System.out.println("Size of list = " + retval); } }OutputNumber = 15 Number = 20 Number = 25 Number = 22 Size of list = 4
Read MoreAccessing Source code of SAP Transport without using SAP system
I don’t think it is possible to check source code without SAP system until you understand SAP Binary code. The format in which the data are stored in the data file is AFAIK, an SAP own format and you can use R3trans to read code using the command.R3trans -l [-w ] [-v ]To know more about R3trans, you can refer to this link −https://archive.sap.com/discussions/thread/1277788
Read MoreAlign the text of a paragraph with CSS
To align the text of a paragraph, use the text-indent property.ExamplePossible values are % or a number specifying indent space. You can try to run the following code to implement a text-index property with CSS: This text will have first line indented by 2cm and this line will remain at its actual position this is done by CSS text-indent property.
Read More