V Jyothi has Published 87 Articles

What does the method get(int) do in java?

V Jyothi

V Jyothi

Updated on 20-Feb-2020 12:18:14

375 Views

The get(int index) method of the java.util.ArrayList class returns the element at the specified position in this list.Exampleimport java.util.ArrayList; public class ArrayListDemo {    public static void main(String[] args) {       ArrayList arrlist = new ArrayList(5);       arrlist.add(15);       arrlist.add(22);       ... Read More

What does the method addAll(Coll C)do in java?

V Jyothi

V Jyothi

Updated on 20-Feb-2020 11:30:01

76 Views

The addAll(Collection

Can we define a class inside a Java interface?

V Jyothi

V Jyothi

Updated on 20-Feb-2020 05:46:54

5K+ Views

Yes, you can define a class inside an interface. In general, if the methods of the interface use this class and if we are not using it anywhere else we will declare a class within an interface.Exampleinterface Library {    void issueBook(Book b);    void retrieveBook(Book b);    public class ... Read More

How to find package explorer in Java eclipse project?

V Jyothi

V Jyothi

Updated on 20-Feb-2020 05:19:59

18K+ Views

To view the project explorer, click on Window menu then, click on Show View and select Project Explorer.There is simpler way to open project explorer, when you are in the editor press alt + shift + w and select project explorer.

How to Map multi-dimensional arrays to a single array in java?

V Jyothi

V Jyothi

Updated on 19-Feb-2020 12:15:46

2K+ Views

A two-dimensional array is nothing but an array of one dimensional arrays. Therefore to map a two dimensional array into one dimensional arrays.Create arrays equal to the length of the 2d array and, using for loop store the contents of the 2d array row by row in the arrays created ... Read More

Getting table name in SAP system

V Jyothi

V Jyothi

Updated on 18-Feb-2020 07:26:58

3K+ Views

Once your data is displayed on screen please follow the below steps −Position your cursor onto the field.Press “F1” Help option – In “Performance Assistant”.This Dialog will show the information for “Table Name” and “Table Field”.

Cast string to date in specific format in SAP HANA

V Jyothi

V Jyothi

Updated on 14-Feb-2020 10:06:12

962 Views

I think you just need to use ‘TO_VARCHAR’ and ‘TO_DATE’ functions.SELECT TO_VARCHAR(TO_DATE(, 'YYYYMMDD'), 'YYYY-MM-DD') FROM

Usage of Operator +n and (n) to pass data in ABAP

V Jyothi

V Jyothi

Updated on 13-Feb-2020 12:50:32

161 Views

If my date format is in the form DDMMYYYY then Z_Period(4) equals DDMM so (4) means first four characters.If my date format is in the form DDMMYYYY then Z_Period +4 equals YYYY so +4 means after the first four characters.So If I say Z_PERIOD+2(2) then this would result MM- i.e. ... Read More

Using constants in ABAP OO method

V Jyothi

V Jyothi

Updated on 13-Feb-2020 10:08:34

183 Views

Your INCLUDE should only contain definitions of constants nothing else and then the answer is straightforward.Select Goto → Class - whichever local definition and then add an INCLUDE statement. This will expose all the constants “INCLUDE” in your implementation.

Overloading unary operators + in C++

V Jyothi

V Jyothi

Updated on 11-Feb-2020 07:12:45

181 Views

The operator keyword declares a function specifying what operator-symbol means that once applied to instances of a class. this gives the operator more than one meaning, or "overloads" it. The compiler distinguishes between the different meanings of an operator by examining the types of its operands.The unary operators operate on ... Read More

Advertisements