Nikitha N

Nikitha N

54 Articles Published

Articles by Nikitha N

Page 5 of 6

How to compile packages in Java

Nikitha N
Nikitha N
Updated on 04-Feb-2020 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 animals; interface Animal {    public void eat();    public void travel(); }Now, let us implement the above interface in the same package animals −package animals; /* File name : MammalInt.java */ public class MammalInt implements Animal {    public void eat() {       System.out.println("Mammal eats");    } ...

Read More

Add or subtract space between the letters that make up a word with CSS

Nikitha N
Nikitha N
Updated on 31-Jan-2020 340 Views

To add or subtract space between the letters that make up a word, use the letter-spacing property.ExampleYou can try to run the following code to implement letter-spacing property:                            Asia is a continent.          

Read More

Increase or decrease the size of a font with CSS

Nikitha N
Nikitha N
Updated on 30-Jan-2020 693 Views

The font-size property is used to increase or decrease the font size. The font-size property is used to control the size of fonts. Possible values could be xx-small, x-small, small, medium, large, x-large, xx-large, smaller, larger, size in pixels or in %.                   This font size is 15 pixels       This font size is small       This font size is large    

Read More

How can we check the default character sets of all the MySQL databases we have on the server?

Nikitha N
Nikitha N
Updated on 30-Jan-2020 145 Views

The query below will return the name of the database along with the default character set −mysql> SELECT SCHEMA_NAME 'Database', default_character_set_name 'charset' FROM information_schema.SCHEMATA; +--------------------+---------+ | Database           | Charset | +--------------------+---------+ | information_schema | utf8    | | gaurav             | latin1  | | menagerie          | latin1  | | mysql              | latin1  | | performance_schema | utf8    | | sample             | latin1  | | test               | latin1  | | tutorial           | latin1  | +--------------------+---------+ 8 rows in set (0.00 sec)

Read More

How can we insert current year automatically in a YEAR type column of MySQL table?

Nikitha N
Nikitha N
Updated on 28-Jan-2020 607 Views

It can be done by using either CURDATE() or NOW() in MySQL query as follows −mysql> Insert into year1(Year_Copyright) values (CURDATE()); Query OK, 1 row affected, 1 warning (0.06 sec) mysql> Select * from year1; +----------------+ | Year_Copyright | +----------------+ |           2017 | |           2017 | +----------------+ 2 rows in set (0.00 sec) mysql> Insert into year1(Year_Copyright) values (NOW()); Query OK, 1 row affected, 1 warning (0.06 sec) mysql> Select * from year1; +----------------+ | Year_Copyright | +----------------+ |           2017 | |           2017 | |           2017 | +----------------+ 1 rows in set (0.00 sec)

Read More

Implementing tree structure in Sapui5 and restricting parent property

Nikitha N
Nikitha N
Updated on 17-Dec-2019 737 Views

Note that “sap.ui.model.ClientTreeBinding” which is used by TreeTable in JSONModel or XMLModel supports the parameter arrayNames. You need to pass an array of the model property names to create a sublevel. I would suggest to try below:In XML view:      ... In JSON view:treeTable.bindRows({path: '/pathToData', parameters: { arrayNames: ['children'] }});For more details about SAPui5 tree structure, you can navigate to following link:https://sapui5.netweaver.ondemand.com/sdk/test-resources/sap/ui/table/TreeTable.html?sap-ui-debug=true&sap-ui-language=en-US&sap-ui-theme=sap_bluecrystal&sap-ui-accessibility=true&sap-ui-jqueryversion=1.10.2

Read More

Properties of SAP ABAP Development Objects

Nikitha N
Nikitha N
Updated on 05-Dec-2019 283 Views

Similar to reflection in JAVA we have RTTS in SAP. RTTS stands for runtime type services. It provides you with ways to retrieve the definitions of variables and lets you create a new variable during program execution. RTTS comprises of two sub-componentsRTTI – Run Time Type IdentificationRTTC – Run Time Type CreationAs the name suggests, RTTI is responsible for retrieving the definitions of variables and types Whereas RTTC is responsible for the creation of new variables with provided definition at run-time.

Read More

How to check if a string has a certain piece of text in JavaScript?

Nikitha N
Nikitha N
Updated on 12-Sep-2019 222 Views

The jQuery search() method is used to check whether a string contains a certain text in JavaScript.You can try to run the following code to check whether “Tutorialspoint: Free Video Tutorials” contains the “Free Video” text in JavaScript or not:           JavaScript String search() Method                        var re = "Free Video";          var str = "Tutorialspoint: Free Video Tutorials";          if ( str.search(re) == -1 ) {             document.write("Does not contain" );          } else {             document.write("Contains" );          }          

Read More

What is ABAP? Explain ABAP OOP feature in detail?

Nikitha N
Nikitha N
Updated on 30-Jul-2019 448 Views

ABAP stands for Advanced Business Application Programming. It is one of the primary programming languages used for developing programs and applications for SAP R/3 systems and its related modules. It is a high-level language with respect to SAP as it is understood and known only to SAP environment.The latest version of ABAP which is ABAP Objects follows Object Oriented paradigm. Also, it is fully backward compatible with applications written in previous versions of ABAP whether it is ABAP/4 or other which were highly impressed by COBOL.Being an Object Oriented Programming language it fully supports features like inheritance, polymorphism, encapsulation, and ...

Read More

What does the method add(E element) do in java?

Nikitha N
Nikitha N
Updated on 30-Jul-2019 507 Views

The add(E e) method of the java.util.ArrayList class appends the specified element E to the end of the list.Example:import 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);       for (Integer number : arrlist) {          System.out.println("Number = " + number);       }    } }Output:Number = 15 Number = 20 Number = 25

Read More
Showing 41–50 of 54 articles
Advertisements