Fendadis John has Published 81 Articles

Converting ArrayList to String[] in java

Fendadis John

Fendadis John

Updated on 24-Feb-2020 10:28:51

301 Views

Following program is converting an ArrayList to String[];Exampleimport java.util.ArrayList; import java.util.List; public class Tester {    public static void main(String[] args) {       List names = new ArrayList();       names.add("A");       names.add("B");       names.add("C");       String[] nameArray = names.toArray(new ... Read More

Creating a variable with dynamic variable type in SAP ABAP

Fendadis John

Fendadis John

Updated on 13-Feb-2020 10:12:00

2K+ Views

You can use RTTS related API to create a Standard table like RANGE which has components like 'LOW', 'HIGH', 'EQ' and 'OPTION'data:    rr_data              type ref to data,    rt_range_string      type range of string,    rs_range_string      like line of rt_range_string, ... Read More

What is the difference between literal and constant in C++?

Fendadis John

Fendadis John

Updated on 11-Feb-2020 08:12:28

542 Views

A literal is a value that is expressed as itself. For example, the number 25 or the string "Hello World" are both literals.A constant is a data type that substitutes a literal. Constants are used when a specific, unchanging value is used various times during the program. For example, if ... Read More

What is typedef declarations in C++?

Fendadis John

Fendadis John

Updated on 11-Feb-2020 07:35:59

314 Views

The typedef keyword in C++ can be used to give a type a new name. For example, you can give a new name of BYTE to unsigned characters −typedef unsigned char BYTE;After this type definition, the identifier BYTE can be used as an abbreviation for the type unsigned char, for ... Read More

What are primitive data type in C++?

Fendadis John

Fendadis John

Updated on 11-Feb-2020 07:19:29

4K+ Views

A primitive type is a data type where the values that it can represent have a very simple nature (a number, a character or a truth-value); the primitive types are the most basic building blocks for any programming language and are the base for more complex data types.C++ has the ... Read More

What is the top IDE for c++ on Window?

Fendadis John

Fendadis John

Updated on 10-Feb-2020 12:38:12

70 Views

Big projects are difficult to manage on mere text editors. You're likely to be more productive and less frustrated if you use an IDE in such cases. There are various types of IDE's and you should select the right one which fits your needs. Here's a list of best C/C++ ... Read More

How can we split the name string into two parts by using MySQL SUBSTRING_INDEX() function?

Fendadis John

Fendadis John

Updated on 10-Feb-2020 07:22:10

180 Views

To make it understand, we are using the following data from a table named ‘customerdetail’.mysql> Select * from Customerdetail; +----------------------+----------------------+-----------+---------------------+ | Name                 | FName                | Address   | Emailid             ... Read More

What is the best way to compare two strings in JavaScript?

Fendadis John

Fendadis John

Updated on 08-Jan-2020 09:40:36

11K+ Views

To compare two strings in JavaScript, use the localeCompare() method. The method returns 0 if both the strings are equal, -1 if string 1 is sorted before string 2 and 1 if string 2 is sorted before string 1.ExampleYou can try to run the following code to compare two stringsLive ... Read More

How to create a website without using HTML?

Fendadis John

Fendadis John

Updated on 25-Sep-2019 07:52:30

3K+ Views

If you are having no knowledge of HTML or CSS, and want to create a website, then do not worry, you can easily create a website without writing even a single line of HTML code.Here are some ways to build a website without writing any HTML or line of code:Website ... Read More

How to make an HTTP request on iOS App using Swift?

Fendadis John

Fendadis John

Updated on 30-Jul-2019 22:30:25

668 Views

To make an http request in iOS we’ll make use of DataTask and sessions. We’ll create configuration, sessions, url, request, and dataTask objects. Let’s see the steps that we’ll go through.The HTTP request can be of different types, it depends on what kind of request we want to make to ... Read More

Advertisements