Found 33676 Articles for Programming

Swift program to check if string is pangram or not

Ankita Saini
Updated on 08-Feb-2023 21:14:22

613 Views

Pangram string is a string that contains all the English alphabet. For example − String = “The quick brown fox jumps over the lazy dog” Here the string is a pangram string which contains all the alphabetical characters from a to z in it. String = “ Hello! Swati how are you?” Here the string is not a pangram string because it does not contain all the 26 alphabetical characters from a to z. In this article, we will learn how to write a swift program to check if a string is pangram or not. So to check if the ... Read More

Swift Program to check if an Array is Palindrome or not

Ankita Saini
Updated on 08-Feb-2023 20:20:39

4K+ Views

A palindrome array is an array that remains the same when its elements are reversed we can also say that the elements of a palindrome array remain the same even if we read it from backward or forward. For example, [1, 9, 10, 9, 1] is a palindrome array whereas [3, 5, 7, 8, 3, 2, 1] is not a palindrome array. In this article, we are going to learn different methods of finding whether the given array is a palindrome or not suing Swift programming language. Algorithm Step 1 − Create a function. Step 2 − Reverse the ... Read More

Swift Program to check if a given string is Keyword or not

Ankita Saini
Updated on 08-Feb-2023 20:21:51

341 Views

Keywords are reserved words used to perform some internal process or represent predefined actions. It is not allowed to use these keywords as a variable name, constant name, or identifier. Swift support approx 101 keywords. For example, ‘var’ is a keyword but ‘hey’ is not a keyword. Here, we will learn how to write a swift program to check whether a given string is a keyword. Algorithm Step 1 − Create an array of string types to store all the keywords supported by Swift. Step 2 − Create a function to check if the given string is a ... Read More

C program to implement CHECKSUM

Satish Kumar
Updated on 27-Nov-2023 11:36:40

10K+ Views

What is CHECKSUM? In computing, a checksum is a small-sized data created from a larger data set using an algorithm, with the intention that any changes made to the larger data set will result in a different checksum. Checksums are commonly used to verify the integrity of data that has been transmitted or stored, as errors or modifications in the data can cause the checksum to change. They can also be used to verify the authenticity of the data, as the checksum is often generated using a secret key known only to the sender and receiver. Why we use CHECKSUM? ... Read More

Bit Stuffing error detection technique using Java

Satish Kumar
Updated on 08-Feb-2023 21:12:56

1K+ Views

Bit stuffing is a technique used in data communication systems to detect and correct errors that may occur during the transmission of data. It works by adding extra bits to the data being transmitted in order to flag when an error has occurred. One common way to implement bit stuffing in Java is to use a flag byte (such as 0x7E) to indicate the start and end of a frame, and to use a special escape byte (such as 0x7D) to indicate that the next byte is a stuffed bit. For example, the sender would add a stuffed bit before ... Read More

How to cancel XMLHttpRequest in AJAX?

AmitDiwan
Updated on 06-Feb-2023 12:42:20

1K+ Views

We will use the "abort()" method to cancel the XMLHttpRequest. This will stop the current request from continuing to execute. In the future, we will make sure to properly cancel any requests that are no longer needed to optimize performance. Let us first understand what XML HttpRequest is. XMLHttpRequest is a JavaScript object that allows web developers to make HTTP requests to a server without reloading the entire page. It is often used for creating dynamic and interactive web applications. The API can be used to retrieve data in different formats such as text, XML, and JSON. XMLHttpRequest is supported ... Read More

Why Spring Boot the King of Java Frameworks?

Mr. Satyabrata
Updated on 03-Feb-2023 23:18:55

695 Views

Java developers have a wide array of frameworks to choose from when building web applications, but one stands out above the rest: Spring Boot. This framework has become increasingly popular in recent years due to its ease of use, flexibility, and powerful features.  Unleashing the Magic of Spring Boot in Development! As a developer, it's easy to feel bogged down by the monotony of repetitive tasks and endless configurations. But with Spring Boot, gone are the days of tedious setup and overwhelming decisions. This revolutionary framework takes the hassle out of development, allowing you to focus on the exciting parts ... Read More

Importance of Proper Exception Handling in Java

Mr. Satyabrata
Updated on 03-Feb-2023 23:18:22

9K+ Views

Java is a widely-used programming language, & as such, it is necessary to understand the importance of proper exception handling to develop robust and efficient code. Exception handling is a mechanism used to handle errors and unexpected conditions in a program, and it is essential for maintaining the integrity and stability of a Java application. Proper exception handling is a critical component of Java programming that helps developers to anticipate and recover from errors and unexpected conditions in a program. It is an essential aspect of maintaining the integrity & stability of a Java application. This is why it is ... Read More

Why will Java Dominate Software Development Still in 2023?

Mr. Satyabrata
Updated on 03-Feb-2023 23:17:37

283 Views

Java is an old programming language which is still in demand, in other words it will dominate software development in 2023 again. Would you like to know why Java will dominate software development in 2023? Before going to why Java will dominate software development, let’s have a look to the Java use cases that will give you an in -depth understanding of uses of the language. Web-based Apps Video games Desktop applications Big data Internet of Things Mobile applications and more. This blog is just for you, So, let’s have a look at those major factors which will ... Read More

Why is Java so Popular for Creating Enterprise Software?

Mr. Satyabrata
Updated on 03-Feb-2023 23:17:06

244 Views

Java is a popular programming language for creating enterprise software, because of some reasons. Would you like to know what those factors are? Here is a short guide for you. Java's own run-time environment, the Java Virtual Machine (JVM), grew in popularity each year from its inception. Java is currently an essential component of both large enterprise-wide solutions and small applications. Furthermore, Java's power has increased with each update, in contrast to other programming languages whose roles have grown over time. Java is still one of the most widely used application programming languages, as indicated by the TIOBE index. According ... Read More

Advertisements