Fendadis John

Fendadis John

40 Articles Published

Articles by Fendadis John

Page 3 of 4

How to add a YouTube Video to your Website?

Fendadis John
Fendadis John
Updated on 16-Jun-2020 905 Views

To add a YouTube Video to your website, you need to embed it. To embed a video in an HTML page, use the element. The source attribute included the video URL. For the dimensions of the video player, set the width and height of the video appropriately.The Video URL is the video embed link. The video we will be embedding our example will be YouTube.To get the embed link, go to a YouTube Video and click embed as shown below. You will get a link fro embed here −You can try to run the following code to learn how ...

Read More

Java variable declaration best practices

Fendadis John
Fendadis John
Updated on 15-Jun-2020 2K+ Views

Following are the best practices while declaring a variable.Variables names should be short or long enough as per the scope. For example, loop counter variable, i is fine whereas employee as a loop variable.Specific words should not be used as equals, compare, data.Use meaningful names which can explain the purpose of the variable. For example cnt Vs counter.Don't use _ to declare a variable name, Use camel casing. For example, employeeName is better than employee_name.Each organization has its own syntax specific standards. Follow those rules to maintain consistency and readability.

Read More

How to set the shape of the border of the top-right corner with JavaScript?

Fendadis John
Fendadis John
Updated on 23-May-2020 259 Views

To set the shape of the border of the top-right corner in JavaScript, use the borderTopRightRadius property. Set border radius using this property.ExampleYou can try to run the following code to learn how to set the shape of the top-right border with JavaScript.Live Demo                    #box {             border: thick solid gray;             width: 300px;             height: 200px          }                     Demo Text             Change top right border radius                function display() {             document.getElementById("box").style.borderTopRightRadius = "20px";          }          

Read More

How to import java.lang.String class in Java?

Fendadis John
Fendadis John
Updated on 26-Feb-2020 18K+ Views

To import any package in the current class you need to use the import keyword asimport packagename;ExampleLive Demoimport java.lang.String; public class Sample {    public static void main(String args[]) {       String s = new String("Hello");       System.out.println(s);    } }OutputHello

Read More

How to redirect URLs with your Hosting Account?

Fendadis John
Fendadis John
Updated on 25-Feb-2020 267 Views

You can easily redirect URLs to the settings under your hosting account. Let’s say you have a blogger blog and you want to redirect it to your website.A redirect automatically sends your visitors to another destination, within the same site or a new URL.Follow the below given steps to redirect URLs to your hosting account, Go to your hosting account and log in.Click Manage Web Hosting and reach the cPanel. Here, search the Domains section and click Redirects, Now, a section can be seen to add a redirect. Here, fill the following fields to redirect URL, TypeThe type of redirect ...

Read More

Converting ArrayList<String> to String[] in java

Fendadis John
Fendadis John
Updated on 24-Feb-2020 512 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 String[names.size()]);       for(String name: nameArray) {          System.out.println(name);       }    } }OutputA B C

Read More

Creating a variable with dynamic variable type in SAP ABAP

Fendadis John
Fendadis John
Updated on 13-Feb-2020 3K+ 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,    rt_component         type abap_component_tab,    rs_component         type line of abap_component_tab,    rt_range_components  type abap_component_tab,    ro_struc_descr       type ref to cl_abap_structdescr,    ro_table_descr       type ref to cl_abap_tabledescr,    ro_data_descr        type ref to cl_abap_datadescr.field-symbols type ...

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 341 Views

To make it understand, we are using the following data from a table named ‘customerdetail’.mysql> Select * from Customerdetail; +----------------------+----------------------+-----------+---------------------+ | Name                 | FName                | Address   | Emailid             | +----------------------+----------------------+-----------+---------------------+ | Advik Jhamb          | Lovkesh Jhamb        | Mumbai    | Advik@gmail.com     | | Chirag Jai Patil     | Raman Jai Patil      | Gujrat    | chirahp@yahoo.com   | | Devansh Singh Rajput | Kishore Singh Rajput ...

Read More

How to create a website without using HTML?

Fendadis John
Fendadis John
Updated on 25-Sep-2019 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 BuildersWhen you will buy a website hosting plan, then the hosting company will provide you with free website builder option to easily create a website without even writing a single piece of HTML CodeContent Management SystemsUse Content Management System such as WordPress, Drupal or Joomla to develop a website, without ...

Read More

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

Fendadis John
Fendadis John
Updated on 30-Jul-2019 948 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 our server. Below are the basic types of requests.“GET”, ”POST”, ”PUT”, ”DELETE” , we can make use of any of these according to our API. The basics remain same for each kind of request, which are shown below. Let’s see these examples with DELETE type of request.First of all we ...

Read More
Showing 21–30 of 40 articles
Advertisements