Shriansh Kumar has Published 324 Articles

5 Simple Ways to Perform Tokenization in Python

Shriansh Kumar

Shriansh Kumar

Updated on 12-Jul-2025 23:42:28

5K+ Views

Tokenization is the process of splitting a string into smaller pieces (tokens). In the context of natural language processing (NLP), tokens are words, punctuation marks, and numbers. Tokenization is a preprocessing step for many NLP tasks, as it allows you to work with individual words and symbols rather than raw ... Read More

Java Program to Check if a given Class is an Anonymous Class

Shriansh Kumar

Shriansh Kumar

Updated on 19-Jun-2025 16:15:26

192 Views

The type of nested class that has no name is called an anonymous class. Before diving into a Java program to check if a given class is an anonymous class, we need to understand what is a nested class. Let's discuss this in detail. What is a Java Nested Class? ... Read More

Java Program to Add the data from the Specified Collection in the Current Collection

Shriansh Kumar

Shriansh Kumar

Updated on 19-Jun-2025 16:01:31

288 Views

In Java, a collection is an object that allows us to group several numbers of objects as a single unit. The Collection interface is the root of the collection framework. We can perform various operations on collection like adding, removing, iterating, searching and retrieving objects. In this article, we will discuss ... Read More

Java Program to Add two Numbers without using Arithmetic Operator

Shriansh Kumar

Shriansh Kumar

Updated on 19-Jun-2025 15:46:18

4K+ Views

Arithmetic operators such as "+", "-", "*", and "/" are used to perform mathematical operations like addition, subtraction, multiplication, modulo, and division. We have added two numbers using the "+" operator, but in this article, we are going to learn a few Java programs that can add two numbers without ... Read More

Java Program to Calculate Sum of Two Byte Values Using Type Casting

Shriansh Kumar

Shriansh Kumar

Updated on 19-Jun-2025 15:38:06

526 Views

When we convert a data type to another data type, we call it type casting. There are two types of type casting in Java: explicit and implicit. Explicit Type Casting  When we typecast a one datatype to another using the cast operator "()",  it is known as explicit type casting, and it is ... Read More

Java Program to Check Array Bounds while inputting Elements into the Array

Shriansh Kumar

Shriansh Kumar

Updated on 19-Jun-2025 14:41:38

157 Views

Array is a linear data structure that is used to store a group of elements with similar data types. It stores data in a sequential manner. Once we create an array, we can't change its size, i.e., it is of fixed length. This article will help you to understand the ... Read More

Java Program to Access All the Constant Defined in the Enum

Shriansh Kumar

Shriansh Kumar

Updated on 19-Jun-2025 14:32:05

204 Views

After JDK version 5, Java introduced the enumeration. It is a group of constants defined using the keyword enum. The final variables in Java are somewhat similar to enumeration. In this article, we will write Java programs in which we define an enum class and try to access all the constants defined ... Read More

Java Program to Access all Data as Object Array

Shriansh Kumar

Shriansh Kumar

Updated on 19-Jun-2025 14:23:21

212 Views

Array is a linear data structure that is used to store a group of elements with the same data type. We can create an array with primitive datatypes, and since a class is considered a user-defined datatype in Java,  it is also possible to create an array of objects. In ... Read More

Java Program for Rotate the Matrix Right by K times

Shriansh Kumar

Shriansh Kumar

Updated on 19-Jun-2025 12:11:27

657 Views

Array is a linear data structure that is used to store a group of elements with similar data types. It stores data in a sequential manner. When we create an array of two dimensions, i.e., rows and columns, we call it a matrix. In this article, we will create a ... Read More

Java Program for Int to Char Conversion

Shriansh Kumar

Shriansh Kumar

Updated on 19-Jun-2025 12:04:26

353 Views

The given task is to write a Java program that converts an integer into a character. The int and char are primitive datatypes of Java. The int is a 32-bit signed datatype used to store whole numbers, and char holds 16-bit unsigned Unicode characters. The int and char keywords are ... Read More

Advertisements