Karthikeya Boyini has Published 2383 Articles

Using Set() in Python Pangram Checking

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jun-2020 08:14:53

217 Views

In this article, we will learn how to determine whether a string is “pangram” or not in Python 3.x. Or earlier. A pangram string contains every letter in the list of English language alphabets . Let us look at the illustration below −Provided Input: str = 'This is the python ... Read More

Get Size of Java LinkedHashSet

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jun-2020 06:14:46

251 Views

To get the size of LinkedHashSet, use the size() method.First, set the LinkedHashSet and add elements −LinkedHashSet set = new LinkedHashSet(); set.add(10); set.add(20); set.add(30); set.add(40); set.add(50); set.add(60);Display the size of the LinkedHashSet created above −set.size()The following is an example to get the size of LinkedHashSet −Example Live Demoimport java.util.*; public class ... Read More

How to remove border in navigationBar in swift?

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jun-2020 06:01:47

2K+ Views

To remove the border from a navigation bar in swift, we just need to add a few lines of code. Let’s see how the navigation bar looks when we run it without changing anything.Now let’s try to hide the line/ border shown in the above result.The navigation bar has two ... Read More

How to remove Specific Element from a Swift Array?

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jun-2020 05:59:34

4K+ Views

To remove a specific object from an element in swift, we can use multiple ways of doing it. Let’s see this in the playground with help of an example.First, let’s create an array of String.var arrayOfString = ["a", "b", "c", "f"]We’ll do it with the following methods as shown below:Method ... Read More

How to use UICollectionView in Swift?

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jun-2020 05:58:40

384 Views

To use collection view in swift, first, we need to create a collection View. We can either drag and drop it to the storyboard, or we can make it programmatically. After that, we need to confirm our class to UICollectionViewDataSource and UICollectionViewDelegate. Also if we need custom cell size and ... Read More

How to create a Custom Dialog box on iOS App using Swift?

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jun-2020 05:57:47

692 Views

To create a dialog box in swift we’ll make use of UIAlertController which is an important part of UIKit. We’ll do this with help of an iOS application and a sample project.First of all, we’ll create an empty project, then inside its default view controller, we’ll perform the following operations.We’ll ... Read More

How to handle right-to-left and left-to-right swipe gestures on iOS App?

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jun-2020 05:56:36

1K+ Views

To handle gestures in iOS application we’ll create an application with swift and see with help of an example. This can be done in two ways, with storyboard or programmatically.Method 1 − With storyboardFirst we’ll drag a swipe gesture recognizer from our object library and drop it in our View ... Read More

How to extract the last 4 characters from NSString?

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jun-2020 05:49:10

852 Views

To extract last 4 characters from a string in swift we can use the internal functions of String class in swift.With new release every time methods have been modified, deprecated, added and improved in swift. Swift provides different methods to achieve the same. Let’s see these ways of doing it ... Read More

How to access RESTFul services from iOS/iPhone?

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jun-2020 05:43:40

96 Views

To access REST APIs in swift we need to go through a series of steps using the native way of networking in swift, that is using URL sessions and Data Tasks.Rest stands for Representational State Transfer, which defines some set of constraints that are to be used by web services. ... Read More

How to remove duplications from arraylist using treeset for listview in Android?

karthikeya Boyini

karthikeya Boyini

Updated on 29-Jun-2020 15:57:06

86 Views

This example demonstrate about How to remove duplications from arraylist using treeset for listview in AndroidStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.     ... Read More

Advertisements