Fendadis John has Published 39 Articles

How to check Location Manager is running or not in iOS App?

Fendadis John

Fendadis John

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

459 Views

To check any services related to location in ios with swift we can use the CLLocationManager.In this example we’ll see how to check if the location manager is running or not. We’ll do this with help of an sample project. So, create a new project. First we need to create ... Read More

How to integrate a facebook login in swift for iOS App?

Fendadis John

Fendadis John

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

484 Views

Social logins in applications have become a very common thing these days. Facebook login is one of them, in this article we’ll see how we can make use of facebook login, to access basic user information and login to the application.Implementing facebook login in an application is a series of ... Read More

Non-persistent CSMA protocol

Fendadis John

Fendadis John

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

3K+ Views

Non-persistent CSMA is a non – aggressive version of Carrier Sense Multiple Access (CMSA) protocol that operates in the Medium Access Control (MAC) layer. Using CMSA protocols, more than one users or nodes send and receive data through a shared medium that may be a single cable or optical fiber ... Read More

Use static Import for sqrt() and pow() methods in class Math in Java

Fendadis John

Fendadis John

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

1K+ Views

Static import means that the fields and methods in a class can be used in the code without specifying their class if they are defined as public static.The Math class methods sqrt() and pow() in the package java.lang are static imported. A program that demonstrates this is given as follows:Example Live ... Read More

Name validation using Java Regular Expressions

Fendadis John

Fendadis John

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

1K+ Views

The name can be validated using the java.util.regex.Pattern.matches() method. This method matches the regular expression for the name and the given input name and returns true if they match and false otherwise.A program that demonstrates this is given as follows:Example Live Demopublic class Demo {    public static void main(String args[]) ... Read More

Sorting collection of String and StringBuffer in Java

Fendadis John

Fendadis John

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

933 Views

In order to sort in Java as we know we can use either Comparable or Comparator interfaces in which we could also define our custom logic to sort.One of the approach to sort is to add the entity in TreeSet or TreeMap which would sort the entries as internally they ... Read More

How do I view events fired on an element in Chrome?

Fendadis John

Fendadis John

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

16K+ Views

To view events fired on an element, follow the below steps in Google Chrome:Open Google Chrome and press F12 to open Dev Tools.Now go to Sources TabGo to Event Listener Breakpoints, on the right:Click on the events and interact with the target element.If the event will fire, then you will get ... Read More

Java Boolean operators

Fendadis John

Fendadis John

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

10K+ Views

There are following boolean operators supported by Java language.Assume variable A holds 10 and variable B holds 20, then −OperatorDescriptionExample== (equal to)Checks if the values of two operands are equal or not, if yes then condition becomes true.(A == B) is not true.!= (not equal to)Checks if the values of ... Read More

Incrementing an integer inside loop in an ABAP program

Fendadis John

Fendadis John

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

859 Views

You need to use the following:You are missing spaces between ls_id+1. You can also use Add 1 to ls_idIn case you are using internal tables, you can directly use SY-TABIX and SY-Index depending upon whether the loop is nested or not.

Advertisements