java

Java program to convert a character to string

Java program to convert a character to string in different ways. We will learn two different ways to convert a character to a string in Java.

Read
java

3 different ways in Java to convert comma-separated strings to an ArrayList

Java program to convert comma separated strings to an ArrayList. This post will show you three different methods to convert comma separated strings to an ArrayList in Java.

Read
java

3 different ways to iterate over a HashSet in Java

Java program to iterate over the hashset items in three different ways. We will use an iterator, for loop and forEach to do that.

Read
c#

C# program to find the maximum occurring character in a string

C# program to find the maximum occurring character in a string. This program will take the string as input from the user and find the maximum occurring character it finds.

Read
c#

How to read float inputs in C#

C# program to read float inputs. We need to convert the entered value to float and we can do that in different ways in C#.

Read
c#

How to find the area of a Triangle in C#

C# program to find the area of a triangle. This program will take the base and height as inputs from the user and print the area of the triangle.

Read
c#

C# program to check if a character is in a string or not

C# program to check if a character is in a string or not. We can use the Contains method of the string class for that.

Read
python

How to get the directory name of a given path in Python

In this tutorial, I will show you how to get the directory name of a given path in python with examples.

Read
java

How to remove specific items or remove all items from a HashSet

Java program to remove specific items or all items from a HashSet. Learn it with different examples.

Read
java

How to add items to a HashSet in Java

Java program to add items to a HashSet. We will use the add method of HashSet to add new items to a HashSet.

Read