Rahul Sharma has Published 46 Articles

How to use ‘do while loop’ in Java?

Rahul Sharma

Rahul Sharma

Updated on 25-Feb-2020 09:49:15

141 Views

A do...while loop is similar to a while loop, except that a do...while loop is guaranteed to execute at least one time.SyntaxFollowing is the syntax of a do...while loop −do {    // Statements }while(Boolean_expression);Notice that the Boolean expression appears at the end of the loop, so the statements in ... Read More

How to empty an array in Java

Rahul Sharma

Rahul Sharma

Updated on 24-Feb-2020 11:10:47

4K+ Views

Use List.clear() method to empty an array.Exampleimport java.util.ArrayList; import java.util.List; public class Tester {    public static void main(String[] args) {       List list = new ArrayList();       list.add("A");       list.add("B");       list.add("C");       list.add("D");       list.add("E");   ... Read More

Find the dimensions of 2D array in Java

Rahul Sharma

Rahul Sharma

Updated on 24-Feb-2020 10:44:41

332 Views

Following example helps to determine the upper bound of a two dimensional array with the use of arrayname.length.https://www.tutorialspoint.com/javaexamples/arrays_upperbound.htm

Using fast mode in Sybase bcp

Rahul Sharma

Rahul Sharma

Updated on 14-Feb-2020 10:30:55

415 Views

In Sybase, when you have indexes on tables it affects transfer speed. When bcp is used on such tables, it automatically uses its slow mode and logs data is inserted in the transaction log. These logged inserts can cause the transaction log to become very large.To control this data excess ... Read More

Using sy-datum low and high in ABAP Program

Rahul Sharma

Rahul Sharma

Updated on 14-Feb-2020 10:24:16

2K+ Views

In this code, you have used ‘BT’ i.e. between so select option will hit any date between today and YYYYMMDD ‘99991231’.You should declare high dates at INITIALIZATION so that it is visible on the selection screen and you can change it if required.select-OPTIONS: so_date FOR sy-datum. INITIALIZATION.    so_date-sign = ... Read More

In SAP UI5 render calling two times in custom control

Rahul Sharma

Rahul Sharma

Updated on 14-Feb-2020 10:22:32

279 Views

In your custom control, there are two aggregation updates- setAggregation and addContent. When you use Aggregation mutators, it uses 3rd parameter to suppress invalidation.It will insert the aggregation but suppress the invalidation since whole control will be rendered at the end it.oControl.setAggregation("layout", oSavedButtonHLyt, true); // suppress invalidateYou should think that ... Read More

How to use the