Nikitha N has Published 77 Articles

How to specify that the target will be downloaded when a user clicks on the hyperlink in HTML?

Nikitha N

Nikitha N

Updated on 03-Mar-2020 05:32:06

94 Views

Use the download attribute to set the file to download on click of the hyperlink. Set the value of the attribute to the name of the downloaded file, for example, image.Example           if statement in Java       The following is an image explaining the concept ... Read More

How do we create underlined text in HTML?

Nikitha N

Nikitha N

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

227 Views

The HTML tag is used to underline a text. You can try to run the following code to create underlined text in HTML −Note − This tag is deprecated now and should not be used. Use CSS instead.Example           HTML u Tag     ... Read More

What is the difference between String.valueOf() and toString() in Java?

Nikitha N

Nikitha N

Updated on 26-Feb-2020 09:56:04

1K+ Views

The toString() method of the String class returns itself a string.ExampleLive Demoimport java.io.*; public class Test {    public static void main(String args[]) {       String Str = new String("Welcome to Tutorialspoint.com");       System.out.print("Return Value :");       System.out.println(Str.toString());    } }OutputReturn Value :Welcome to ... Read More

What does the method contains(obj o) do in java?

Nikitha N

Nikitha N

Updated on 25-Feb-2020 08:20:14

61 Views

The contains(Object) method of the java.util.ArrayList class returns true if this list contains the specified element.Exampleimport java.util.ArrayList; public class ArrayListDemo {    public static void main(String[] args) {       ArrayList arrlist = new ArrayList

What are classpath of projects in Java eclipse projects?

Nikitha N

Nikitha N

Updated on 20-Feb-2020 05:09:58

3K+ Views

You can include Jar files to which you need to set the classpath in the eclipse project using build pathStep 1 − Right click on the project Select Build Path → Configure Build Path.Step 2 − Select libraries select Add External JARs… button.Step3 − Then browse through the folder where the ... Read More

How to check if array contains three consecutive dates in java?

Nikitha N

Nikitha N

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

734 Views

To check to find whether a given array contains three consecutive dates:Convert the given array into a list of type LocalDate.Using the methods of the LocalDate class compare ith, i+1th and i+1th, i+2th elements of the list if equal the list contain 3 consecutive elements.ExampleLive Demoimport java.time.LocalDate; import java.time.Month; ... Read More

How to store the contents of an URL in java?

Nikitha N

Nikitha N

Updated on 19-Feb-2020 11:27:38

565 Views

The openStream() method of the URL class opens a connection and returns an InputStream. Using this stream, you can you read contents from that connection.Exampleimport java.io.InputStream; import java.net.URL; import java.util.Scanner; public class ReadingURL {    public static void main(String args[]) throws Exception {       URL url = new ... Read More

Logging in SAP using command line

Nikitha N

Nikitha N

Updated on 18-Feb-2020 07:30:32

845 Views

sapshcut.exe command can be used to log in to SAP from command line as shown in below example:ProcedureAdd the directory that contains the sapshcut.exe command to your system or user path. The sapshcut.exe command is installed as part of the SAP client into the following directory: C:\Program Files\SAP\FrontEnd\SAPguiTo add additional ... Read More

Using SAP Gateway service in SAP Web project

Nikitha N

Nikitha N

Updated on 18-Feb-2020 07:25:04

190 Views

Please executes the below steps to get the services added −Define service in your manifest.json file?"sap.app": {    [...],    "dataSources": {       "mainService": {           "uri": "Path of your service",           "type": "OData",          "settings": { ... Read More

What is array decaying in C/C++?

Nikitha N

Nikitha N

Updated on 11-Feb-2020 10:41:41

103 Views

Arrays and pointers work quite similarly in C/C++. But there are some subtle differences. For example, the sizeof operator works quite differently on the two. When you convert an array in a pointer,Example#include int main() {    const int a[] = { 2, 3, 5, 7, 11 };    const int* p = a;    std::cout

Advertisements