Nikitha N has Published 73 Articles

How do we create underlined text in HTML?

Nikitha N

Nikitha N

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

534 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

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

130 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

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

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

839 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

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

299 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

201 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

How to compile packages in Java

Nikitha N

Nikitha N

Updated on 04-Feb-2020 10:47:31

6K+ Views

Let us look at an example that creates a package called animals. It is a good practice to use names of packages with lower case letters to avoid any conflicts with the names of classes and interfaces.Following package example contains interface named animals −/* File name : Animal.java */ package ... Read More

Advertisements