
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
Found 26504 Articles for Server Side Programming

2K+ Views
Merging two sets means combining all the elements of a set into another set without any duplicates. In Swift, we can either use formUnion() function or for-in loop to merge the elements of two sets. Lets discuss both the methods in detail along with examples. Method 1: Using formUnion() Function To merge two sets we can use formUnion() function. The formUnion() function is used to insert the elements of the given sequence into the set. Here the sequence can be anything a set, array, etc. This function merge two sets without any duplicates. Syntax set1.formUnion(set2) Where set1 and set2 ... Read More

3K+ Views
Introduction Let us try to understand the C# program to get the name of the file from the absolute path. We will see the usage of the GetFileName method which comes under the File class to get the name of the file, and another method GetFileNameWithoutExtension which will return the file name of the specified path string without extension. To get the relative path from two absolute paths, we will make use of the Uri class in C#. The Uri class provides several methods for working with URIs, including MakeRelativeUri, which we will use in our code. A file is ... Read More

1K+ Views
In Swift, a set is used to define a unordered collection of unique elements. To iterate over an set swift provide inbuilt forEach() function as well as for-in loop. Lets discuss both the methods in detail along with examples. Method 1: Using for-in Loop To iterate over an set we can use for-in loop. The for-in loop iterate through each element of the set and display them on the screen one by one. Syntax for x in newSet{ print(x) } Where newset is the name of the set, and x variable store the current element from ... Read More

364 Views
Introduction Let us see how to use the instrumental environment class of C# to write a C# Program to Get and Print the Command Line Arguments Using Environment Class. Knowing all the things about C#, we will now understand one of the uses of the system.environment class in C# and then we will learn to code a program that will get and print the command line arguments. Basically, it will take strings as arguments and will have its return type as a string. Before diving into the program we must have an overview of what is environment class in detail ... Read More

179 Views
In Swift, a set is used to define a collection of unique elements, means a set doesn’t contains duplicate elements. In a set, the elements are not arranged in a particular order. Initialising a set means to store some information in the set. It can be done at the time of declaration or after declaration. We can initialise a set in various way like initialising a set without explicitly passing data types, initialising a set with explicitly passing data types, and using inbuilt insert() function. Now lets discuss all the method in detail along with examples. Method 1 In this ... Read More

18K+ Views
Introduction On the computer, we can store files in a directory, also known as a folder. A directory also contains shortcuts to other directories and files. If we want to know what all files have stored in a directory then C# also offers an easy way to do so. In this article, we will be learning a C# program to get all files present in a directory. There are more than a couple of ways to know the files available in the directory. Let us discuss them in the upcoming sections. 1. GetFiles() Method For knowing the name ... Read More

618 Views
In Swift, the Linear search algorithm is the easiest search algorithm. In a linear search algorithm, searching starts from index 0 and checks all the elements of the given array/sequence one by one until the desired element is found. If the desired element is found, then return the index of that element. If the desired element is not found, then return null. For example − We have an element M = 13, now we search M in the following array using a linear search algorithm − The linear search algorithm starts from index 0 and compares M=13 with ... Read More

550 Views
In swift, Bubble sort algorithm is the easiest search algorithm. This algorithm sorts the elements by repeatedly swapping adjacent elements if they are not present at the right place. This algorithm works well only for small set of elements, it is not suitable for larger number of elements because its average and worst case time complexity is high. So the working of the bubble sort is − Suppose we have the following array − Now we sort the array in ascending order using the bubble sort. Here starting from the first index we compare the first and second element. ... Read More

4K+ Views
Introduction There are a lot of ways to generate a mark sheet for a student. Today we will learn one of them. In this article, we will learn a C# program to generate the mark sheet of a student. Let us learn the algorithm first. Algorithm Let us discuss the algorithm to write the program which generates the mark sheet of a student. The student has to give the input to the system and then the mark sheet is generated. Step 1 − Firstly we declare the integer variables for storing the different data such as the roll ... Read More

330 Views
Introduction In this article, we are going to find the greatest number in an array using the WHERE clause in LINQ. LINQ (Language Integrated query) is used to generate queries in C# Language. The best part of LINQ is that it provides a unified source of the method to access data from different sources like databases and XML documents. With the help of LINQ, users can write code that has much better readability and the code is much more concise and good-looking. It also provides other functionalities like filtering, sorting, grouping data and even changing them. Before moving ahead we ... Read More