Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Programming Articles - Page 540 of 3363
277 Views
In this tutorial, you are about to learn how you can use generics to make your code reusable and flexible in an application. You will see how to create functions and properties that can work with any type with an example. What is generics? Swift allows you to write flexible, reusable code using generics. Generic code can work with any type. You can write code that avoids duplication and expresses its intent in a clear, abstract manner. Generics are one of the most powerful features of Swift, and much of the Swift standard library is built with generic code. You’ve ... Read More
3K+ Views
In this tutorial, you will learn the use of double question marks (?) in the Swift language. In Swift, a double question mark (??) is called the "nil−coalescing operator". This operator is basically used to provide a default value in the case of nil. In other words, when a variable is nil and you want to provide a default value in the absence of a value, use this operator. According to Apple documentation The nil-coalescing operator (a ?? b) unwraps an optional a if it contains a value, or returns a default value b if a is nil. The expression ... Read More
12K+ Views
This guide will cover what classes and functions there are in the Swift programming language. Also, what are the differences between them? Most of the time, when we write code in a project, we have to deal with classes and structures. It is true that these two features are the most significant in Swift. In a real−time application, whatever you want to write, you need to create a class to assign responsibility. If we already have a class option, we need to understand why and when we should use the structure. Structures are one of the fundamental concepts in the ... Read More
410 Views
In this tutorial, we are going to study about different types of tools required to develop iOS applications. As we already know, there are approximately 1 billion iPhone users. Thus, Apple always provides a hassle−free environment for developers who want to build applications for iPhone, iPad, MacBook, and Apple Watch. Apple has built a strong ecosystem for developers so they can focus on writing code and building apps. Today, we will see what tools we need to develop applications on the Apple platform. Xcode This is an editor or IDE to write code for building apps. Apple released the ... Read More
872 Views
This article will explain to you the advantages of using the Swift programming language. Introduction of the Swift language Swift is a clean and concise programming language that is growing fast and becoming increasingly popular. Swift was initially used for iOS development but has become very popular for many other things like macOS, watchOS, and server-side development. Apple introduced the Swift language as an open-source programming language as a replacement for Objective−C, C, and C++. The Swift language was created in 2014 and released publicly in 2015 by Apple Inc. We can say Swift is a modern programming language like ... Read More
4K+ Views
This article will explain the difference between let and var in the Swift language. Most of the time, we deal with different data types in any programming language. However, we need to identify values by name. These names are called variables. Like C, Swift uses variables to store and refer to values by an identifying name. Swift also makes extensive use of variables whose values can’t be changed. These are known as constants. They are more powerful than constants in C. Constants are used throughout Swift to make code safer and clearer in intent. This is because you work with ... Read More
4K+ Views
In this tutorial, we will talk about how we can use the plist in the application to store information. Let’s first understand what is plist. What is plist? The plist file is also called the property list and is used by operating systems (e.g. iOS) and users. The information is stored in a key-value format similar to a dictionary. A plist file can contain different types of values like strings, arrays, dictionaries, booleans, dates, data, and numbers, such as integers. Most of these types correspond to native Swift types, such as Array and Bool. You can also store nested arrays ... Read More
8K+ Views
A number is said to be a tech number, when an even digit number is divided into exactly two parts and the square value of the sum of those two numbers is equal to the original number. For more clarification, we take a number which has even digits. After that, divide it into two parts and add two parts. After getting the sum value, we calculate the square of it. Now we compare both the calculated square value and the original/input number. If both are same then we can say that the input number is a tech number otherwise ... Read More
586 Views
A number is said to be a Tcefrep number, if the reverse of that number is equal to the sum of the proper divisors of the original number. For more clarification, we find the sum of the divisors of a number and find the reverse of the original number. If both the sum value and the reverse of the given number are the same then we can say that the given number is a Tcefrep number. Some examples of Tcefrep numbers are: 6, 498906, 20671542 ... etc. In this article, we will see how to check if a ... Read More
3K+ Views
A number is said to be a Strontio number, if we multiply 2 with a four-digit number then in the resultant number the tens place and hundreds place digits are the same. In simple terms, Strontio numbers are basically four-digit numbers. When we multiply 2 with it, it results in a number whose tens place and hundred places are exactly the same. Some examples of Strontio numbers are- 1111, 2222, 3333, 4444, 5555, 6666, 7777, 8888, 9999, 1001 ... etc. In this article, we will see how to check if a number is a strontio number by using Java ... Read More