Abhinanda Shri

Abhinanda Shri

43 Articles Published

Articles by Abhinanda Shri

Page 3 of 5

How to specify the URL of the page the link goes to in HTML?

Abhinanda Shri
Abhinanda Shri
Updated on 03-Mar-2020 614 Views

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 More

Set the language of the track text data in HTML

Abhinanda Shri
Abhinanda Shri
Updated on 03-Mar-2020 187 Views

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 More

How to get the value associated with the http-equiv or name attribute in HTML?

Abhinanda Shri
Abhinanda Shri
Updated on 03-Mar-2020 181 Views

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 More

How to set the script to be executed asynchronously in HTML?

Abhinanda Shri
Abhinanda Shri
Updated on 02-Mar-2020 159 Views

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 More

Java string case change sample code examples.

Abhinanda Shri
Abhinanda Shri
Updated on 26-Feb-2020 193 Views

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 More

How to split a Java String into tokens with StringTokenizer?

Abhinanda Shri
Abhinanda Shri
Updated on 26-Feb-2020 530 Views

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 More

What does the method set(int, obj o) do in java?

Abhinanda Shri
Abhinanda Shri
Updated on 20-Feb-2020 151 Views

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 More

What does the method size() do in java?

Abhinanda Shri
Abhinanda Shri
Updated on 20-Feb-2020 883 Views

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 More

Accessing Source code of SAP Transport without using SAP system

Abhinanda Shri
Abhinanda Shri
Updated on 14-Feb-2020 444 Views

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 More

Align the text of a paragraph with CSS

Abhinanda Shri
Abhinanda Shri
Updated on 31-Jan-2020 524 Views

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
Showing 21–30 of 43 articles
Advertisements