Articles on Trending Technologies

Technical articles with clear explanations and examples

Google Colab ñ Running ML with Low-Spec Device

Jay Singh
Jay Singh
Updated on 31-Jul-2023 210 Views

Over the past few years, advances in a variety of fields, including computer vision, natural language processing, and speech recognition, have made the field of machine learning (ML) more and more well-liked. Executing the models and algorithms, however, need strong hardware, which is one of the biggest difficulties encountered by individuals working in ML. This can seriously impede the ability of persons without access to powerful computers to do their tasks. Running ML models on low-end devices have become considerably simpler, though, owing to Google Colab. So, what is Google Colab? Google Colab, a cloud-based service, is the best option ...

Read More

Java Program to Sort the 2D Array Across Rows

Way2Class
Way2Class
Updated on 31-Jul-2023 3K+ Views

Sorting in data structures means to rearrange the given list of elements or a certain array, according to the question or precisely the given operator. This operator decides the new order of the elements. An array is a collection of certain elements that can be anything which takes up the adjacent memory locations.Here we store multiple elements of the same type together. Sorting helps us to rearrange these elements. For example, 15, 8, 12, 28 are elements of an unsorted array and after sorting, 28, 15, 12, 8 become a sorted array with descending order. This article will demonstrate how ...

Read More

How to Instantiate an Abstract Class in Java?

Way2Class
Way2Class
Updated on 31-Jul-2023 1K+ Views

An Abstract Class is a class which is declared under the ‘Abstract’ keyword in Java. Abstract classes are a concept of one of the four principles of Object Oriented Programming (OOP) known as ‘Inheritance.’ Inheritance refers to a characteristic of Java Classes where one class known as the ‘Sub-class’ can inherit all the properties of the parent class typically known as ‘Super-class.’ In Java, Abstract Classes refer to the base super class from which other sub classes can inherit. It can contain both abstract and non-abstract methods. Algorithm Step 1 − Identify the methods in the class that have ...

Read More

Print first and last character of each word in a string

Mallika Gupta
Mallika Gupta
Updated on 31-Jul-2023 1K+ Views

Introduction A C++ string is contiguous storage of alphanumeric characters as well as special characters. A string has the following properties − Every C++ string is associated with a fixed length. Character operations can be easily performed with the string characters. A string is composed of words, which are space separated. In this article, we are going to develop a code that takes as input a string, and displays the last character of each word in the string. Let us look at the following example to understand the topic better − Sample Example Example 1 − str − ...

Read More

Drawing a Smiley in Java Applet

Way2Class
Way2Class
Updated on 31-Jul-2023 6K+ Views

Java Applet is an astounding resource that grants specialists to make smart representations and liveliness inside a web program. In this educational activity, we will examine how to draw a smiley face using Java Applet. We will cover the accentuation, little by little computation, and different ways of managing to accomplish this task. Close to the completion of this article, you will have an unquestionable understanding of how to make a smiley face using Java Applet. Syntax To draw a smiley face in Java Applet, we really want to utilize the Illustrations class, which gives techniques to draw different shapes ...

Read More

Print last character of each word in a string

Mallika Gupta
Mallika Gupta
Updated on 31-Jul-2023 1K+ Views

Introduction C++ strings are essentially a combination of words used as a storage unit to contain alphanumeric data. The words in a string are associated with the following properties − The word positions begin with 0. Every word is associated with a different length. The characters combine together to form words, which eventually form sentences. By default, the words are separated by a space character. Every word contains at least one character. In this article, we are going to develop a code that takes as input a string, and displays the last character of each word in ...

Read More

Pairs of strings which on concatenating contains each character of “string”

Mallika Gupta
Mallika Gupta
Updated on 31-Jul-2023 194 Views

Introduction A stream of characters flowing together collectively comprising of alphanumeric characters as well as special symbols can be termed as a C++ string. String concatenation is an important aspect of the string data structure, since it is used to combine different sub strings or words to form complete sentences. Concatenation in C++ can be simply done using the + operator. In this article, we are going to develop a code that takes as input an array of string, and then analyses each pair to see if that pair contains all the letters of the word “string” . Let us ...

Read More

Encrypt a string by repeating i-th character i times

Mallika Gupta
Mallika Gupta
Updated on 31-Jul-2023 233 Views

Introduction A C++ string is a fixed sequence of alphanumeric characters. It is a continuous stream of occurring characters, which may be digits, characters or even special symbols. Every string is characterized by a definite length. The positions by which the characters are accessed begin with 0. Strings can contain unique or repeated characters concatenated together. They can be subjected to various manipulations and concatenation operations. In this article, we are going to develop a code that takes as input a string, and displays the encrypted string, wherein the first character is repeated 1 time, the second character is ...

Read More

DoubleConsumer Interface in Java with Examples

Way2Class
Way2Class
Updated on 31-Jul-2023 297 Views

In Java, functional programming has acquired enormous fame because of its capacity to work on code and further develop code coherence. The DoubleConsumer interface point is a significant part of Java's functional programming worldview.It is a functional interface that accepts a double-valued argument and performs some operations on it. In this article, we will explore the syntax, usage, and examples of the DoubleConsumer interface in Java. Syntax The DoubleConsumer interface has a solitary conceptual strategy called accept, which takes a double value as its parameter. The syntax of the DoubleConsumer point of interface is as per the following: @FunctionalInterface ...

Read More

Difference between Javabeans and Enterprise Javabeans

Way2Class
Way2Class
Updated on 31-Jul-2023 3K+ Views

In the domain of Java programming, Javabeans and Undertaking Javabeans (EJB) are two particular advances that fill various needs. While both assume an urgent part in Java improvement, it's fundamental to grasp their disparities and when to use each. This article aims to provide a comprehensive comparison between Javabeans and Enterprise Javabeans, exploring their syntax, approaches, and code examples. Approach To understand the difference between Javabeans and Enterprise Javabeans, it is essential to explore their approaches in Java development. Javabeans Javabeans are a lightweight and reusable component model used in Java programming. The approach with Javabeans involves creating modular, self-contained ...

Read More
Showing 35051–35060 of 61,297 articles
Advertisements