String is a sequence of character values. In Java, Strings are considered as objects. We have a String class provided by Java for creating and manipulating strings. We have to convert the first letter of the word to lowercase and last letter of the word to uppercase. In this article we will see how the first and last letter can be converted into lower and upper case respectively. Let’s explore. To Show You Some Instances Instance-1 Suppose the input string is “Hello” After converting the first letter to lower and last letter to capital, the new string will be “hellO” ... Read More
In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. As per the problem statement we have to find the sum of elements which is even and sum of elements which is odd in an array and compare their sum and check which one is smaller. A number is said to be even if it is divisible by 2 else it is called an odd number. Note − The array must be an integer array. Let’s explore the article to see how it can be done by using Java programming language. ... Read More
In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. As per the problem statement we have to find the sum of all even and odd numbers in a given array and compare them to see which one is greater. Note − The array must be an integer array. Let’s explore the article to see how it can be done by using Java programming language. To Show You Some Instances Instance-1 Suppose the original array is {14, 49, 55, 67, 72, 82} After finding average of sum of even and ... Read More
In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. As per the problem statement we have to check and confirm the array is free from 0 and negative numbers. Let us say that an array contains 0 or a negative element then the result should pop up that "Array contains 0 or a negative number." Otherwise, the result should be "Array doesn’t contain 0 or a negative number." Note − The array must be an integer array. Let’s explore the article to see how it can be done by using ... Read More
In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. As per the problem statement we have to arrange all elements of array such that negative elements are present before positive elements. If a number is greater than 0 then it is called as positive number, if less than 0 then it is called as negative number. Note − The array must be an integer array. Let’s explore the article to see how it can be done by using Java programming language. To Show You Some Instances Instance-1 Suppose the ... Read More
Introduction Crypto lending is the process of depositing the cryptocurrency that is lent out to borrowers in return for payments at regular intervals. The payments are typically made through cryptocurrencies that are used in day-to-day lives. The amount is deposited and calculated daily, weekly, and monthly. Borrowing and lending in stable cryptocurrencies have become one of the latest and most followed processes. It has done the business of borrowing and lending hassle-free and more accessible. The transactions have become more manageable, Helping users to make use of the various networks. Also, the security of data and information is ensured, making ... Read More
Introduction A blockchain is a disseminated information base or record that is divided between the hubs of a PC organization. As a data set, a blockchain stores data electronically in a computerized design. Blockchains are most popular for their pivotal job in digital money frameworks, like Bitcoin, for keeping a safe and decentralized record of exchanges. The development of a blockchain is that it ensures the devotion and security of a record of information and produces trust without the requirement for a confided-in outsider. One critical distinction between a normal information base and a blockchain is how the information is ... Read More
Blockchain is a perfect fit for the banking industry. Banks currently face several pain points: they rely on highly-specific banking experts and bankers, constantly battling cybersecurity risks and breaches, and their operations are overly complex. However, with blockchain, banks can operate more efficiently by connecting to smart contracts instead of relying on people. Blockchain also solves the issue of cybersecurity by making it impossible to hack. Finally, individual components can be isolated from one another so that if one fails, everything remains operational. Complexity is the enemy of efficiency, and complexity costs money. Although blockchain technology is complex, it removes ... Read More
In this tutorial, you are going to learn what changes have been released in Swift 4. Every time, Apple releases major versions with lots of improvements and additions to APIs. The new features introduced in Swift 4.0 include improved key paths for key-value coding, encoding and decoding, multi-line string literals, Strings are collections, improved dictionary functionality, one-sided ranges, and many other code enhancements. Encoding & Decoding In Swift 4.0, Apple introduced the Codable protocol to make encoding and decoding easy for developers. You can implement serialization and deserialization in your code using this protocol. You can encode and decode your ... Read More
What exactly are Crypto Tokens? The phrase crypto token describes a virtual currency token or the method through which cryptocurrencies are valued. These tokens are exchangeable and marketable assets or services within their blockchains. Crypto tokens are used to gather funds for crowd sales, but they may also be used in place of other products. They are often generated, transferred, traded, and disseminated using the initial coin offering (ICO) procedure. How Do Crypto Tokens Work? Cryptocurrency coins are equal to digital currencies in the same way that money in a bank account is. Even if you own that sum of ... Read More