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 Nikitha N
Page 4 of 6
How to find Kaprekar numbers within a given range using Python?
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 MoreSet the text wrap in a form in HTML
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 MoreExecute a script when the length of the media changes in HTML?
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 MoreHow do we define the start of a term in a definition list in HTML?
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 MoreHow to specify that the target will be downloaded when a user clicks on the hyperlink in HTML?
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 MoreWhat does the method contains(obj o) do in java?
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 MoreWhat are classpath of projects in Java eclipse projects?
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 MoreHow to check if array contains three consecutive dates in java?
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 MoreLogging in SAP using command line
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 MoreUsing SAP Gateway service in SAP Web project
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