Karthikeya Boyini has Published 2383 Articles

Java program to find the area of a circle

karthikeya Boyini

karthikeya Boyini

Updated on 13-Mar-2020 09:43:27

17K+ Views

Area of a circle is the product of the square of its radius, and the value of PI, Therefore, to calculate the area of a rectangleGet the radius of the circle.Calculate the square of the radius.Calculate the product of the value of PI and the value of the square of ... Read More

Java program to print Fibonacci series of a given number.

karthikeya Boyini

karthikeya Boyini

Updated on 13-Mar-2020 07:25:42

485 Views

Recursion is the process of repeating items in a self-similar way. In programming languages, if a program allows you to call a function inside the same function, then it is called a recursive call of the function.ExampleFollowing is an example to find Fibonacci series of a given number using a ... Read More

Java program to delete duplicate characters from a given String

karthikeya Boyini

karthikeya Boyini

Updated on 13-Mar-2020 07:18:07

2K+ Views

The interface Set does not allow duplicate elements, therefore, create a set object and try to add each element to it using the add() method in case of repetition of elements this method returns false −If you try to add all the elements of the array to a Set, it ... Read More

Java program to print the transpose of a matrix

karthikeya Boyini

karthikeya Boyini

Updated on 13-Mar-2020 06:16:50

2K+ Views

The transpose of a matrix is the one whose rows are columns of the original matrix, i.e. if A and B are two matrices such that the rows of the matrix B are the columns of the matrix A then Matrix B is said to be the transpose of Matrix ... Read More

Java program to find the largest number in an array

karthikeya Boyini

karthikeya Boyini

Updated on 13-Mar-2020 06:02:57

12K+ Views

To find the largest element of the given array, first of all, sort the array.Sorting an arrayCompare the first two elements of the arrayIf the first element is greater than the second swap them.Then, compare 2nd and 3rd elements if the second element is greater than the 3rd swap them.Repeat ... Read More

Java program to implement insertion sort

karthikeya Boyini

karthikeya Boyini

Updated on 13-Mar-2020 05:49:39

691 Views

This is an in-place comparison-based sorting algorithm. Here, a sub-list is maintained which is always sorted. For example, the lower part of an array is maintained to be sorted. An element which is to be inserted in this sorted sub-list has to find its appropriate place and then it has ... Read More

Adding rows in an internal table with header line in SAP ABAP

karthikeya Boyini

karthikeya Boyini

Updated on 13-Mar-2020 05:12:12

1K+ Views

Note that you shouldn’t use headers with internal tables. As you are using it, and header of in_table2 is empty. Use the loop to print it as below −LOOP AT in_table2.   "here in_table2 means table (an internal table)   WRITE / in_table2. "here in_table2 means the header of the ... Read More

What does the method toString(int[] a) do?

karthikeya Boyini

karthikeya Boyini

Updated on 13-Mar-2020 05:03:01

52 Views

The toString(int[]) method of the class java.util.Arrays return a string representation of the contents of the specified int array. The string representation consists of a list of the array's elements, enclosed in square brackets ("[]"). Adjacent elements are separated by the characters ", " (a comma followed by a space).Exampleimport ... Read More

Transforming XML file into fixed length flat file in SAP

karthikeya Boyini

karthikeya Boyini

Updated on 12-Mar-2020 12:48:46

491 Views

This is an EDIfact invoice. Try using the script, and it can help −                                                                   ... Read More

Passing to method geticon in SAPUI5

karthikeya Boyini

karthikeya Boyini

Updated on 12-Mar-2020 12:46:42

186 Views

SAP UI supports custom formatter functions. formatter="function" is used to specify a function to format cell data prior to display.formatter="function"Try using formatter function as below −icon : {    parts : ["answer"],    formatter : function(answerValue){       return self.getIcon(answerValue);    } }Refer below link to know more about ... Read More

Advertisements