Nikitha N

Nikitha N

54 Articles Published

Articles by Nikitha N

Page 4 of 6

How to find Kaprekar numbers within a given range using Python?

Nikitha N
Nikitha N
Updated on 05-Mar-2020 1K+ Views

A modified Kaprekar number is a positive whole number n with d digits, such that when we split its square into two pieces - a right hand piece r with d digits and a left hand piece l that contains the remaining d or d−1 digits, the sum of the pieces is equal to the original number (i.e. l + r = n).You can find Kaprekar numbers within a given range by testing each number for the given condition in the given range. exampledef print_Kaprekar_nums(start, end):    for i in range(start, end + 1):       # Get the digits ...

Read More

Set the text wrap in a form in HTML

Nikitha N
Nikitha N
Updated on 03-Mar-2020 841 Views

Use the wrap attribute to set the text wrap in HTML. You can try to run the following code to implement wrap attribute −Example                              This is demo text This is demo text This is demo text This is demo text                    

Read More

Execute a script when the length of the media changes in HTML?

Nikitha N
Nikitha N
Updated on 03-Mar-2020 276 Views

The ondurationchange attribute triggers when the length of the audio/ video changes in HTML.ExampleYou can try to run the following code to implement ondurationchange attribute −                                        Your browser does not support the video element.                      function display(vLength) {             alert("Video Length: " + vLength.duration + " seconds");          }          

Read More

How do we define the start of a term in a definition list in HTML?

Nikitha N
Nikitha N
Updated on 03-Mar-2020 288 Views

The HTML tag is used to define the start of a term in a definition list. A definition list is similar to other lists but in a definition list, each list item contains two entries; a term and a description.ExampleYou can try to run the following code to define the start of a term in a definition list using the tag −           HTML dt Tag                        Definition List          A list of terms and their definitions/descriptions.          JAVA          Tutorial on JAVA Programming Language.          Android          Tutorial on Android Operating System.          

Read More

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 204 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 if if-statmement in Java (Click to download):                                

Read More

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

Nikitha N
Nikitha N
Updated on 25-Feb-2020 165 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

Read More

What are classpath of projects in Java eclipse projects?

Nikitha N
Nikitha N
Updated on 20-Feb-2020 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 required jar files exits, select them and press open.Selected jar files will be added to the Libraries. Finally, press OK.Now, if you open the Referenced libraries in the project you can observe the added jar file.

Read More

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

Nikitha N
Nikitha N
Updated on 19-Feb-2020 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; import java.util.ArrayList; import java.util.Collections; import java.util.Date; import java.util.List; public class ConsicutiveDate {    public static void main(String args[]) {       String[] dates = {"5/12/2017", "6/12/2017", "7/12/2017"};       List localDateList = new ArrayList();       for (int i = 0; i

Read More

Logging in SAP using command line

SAP
Nikitha N
Nikitha N
Updated on 18-Feb-2020 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 directories to the system or user path on Windows systems, select Control Panel > System > Advanced > Environment Variables.The .bat file must be named sapshcut.bat  must be located in your default path preceding the sapshcut.exe file.The following parameters are passed to the sapshcut.bat file when called from a predefined ...

Read More

Using SAP Gateway service in SAP Web project

SAP
Nikitha N
Nikitha N
Updated on 18-Feb-2020 345 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": {             "odataVersion": "X.X",             "localUri":             "localService/metadata.xml"          }       } }, [...]The model definition should be implemented in your manifest.json file?"models": {    [...],    "": {       "dataSource": "mainService",       "settings": {          "metadataUrlParams": {             "sap-documentation": "heading"          },         "defaultBindingMode": "TwoWay"       }    } },

Read More
Showing 31–40 of 54 articles
Advertisements