Skip to content

Category Archives: Java Programs

Given a Double value in Java, the task is to convert this double value to string type. Examples: Input: 1.0 Output: "1.0" Input: 3.14 Output:… Read More
Given a Byte value in Java, the task is to convert this byte value to string type. Examples: Input: 1 Output: "1" Input: 3 Output:… Read More
Given a String “str” in Java, the task is to convert this string to float type. Examples: Input: str = "1.0" Output: 1.0 Input: str… Read More
Given a String “str” in Java, the task is to convert this string to short type. Examples: Input: str = "1" Output: 1 Input: str… Read More
Given a String “str” in Java, the task is to convert this string to byte type. Examples: Input: str = "1" Output: 1 Input: str… Read More
Given an ArrayList collection in Java, the task is to remove the first element from the ArrayList. Example: Input: ArrayList[] = [10, 20, 30, 1,… Read More
Given an ArrayList collection in Java, the task is to remove the last element from the ArrayList. Example: Input: ArrayList[] = [10, 20, 30, 1,… Read More
Rabin Cryptosystem is an public-key cryptosystem invented by Michael Rabin. It uses asymmetric key encryption for communicating between two parties and encrypting the message. The… Read More
Java is a very popular language, but it has a few drawbacks. One of the most popular drawbacks is that we still need to write… Read More
Given an array of integer arr[] and an integer k, the task is to find the median of each window of size k starting from… Read More
Given a integer value, the task is to convert this integer value into a boolean value in Java. Examples: Input: int = 1 Output: true… Read More
Given a boolean value, the task is to convert this boolean value into an integer value in Java. Examples: Input: boolean = true Output: 1… Read More
Password checker program basically checks if the password is valid or not based on password policies mention below: Password should not contain any space. Password… Read More
Given a character in Java, your task is to write a Java program to convert this given character into an integer. In Java, we can… Read More
Given a value N, the task is to create a List having this value N in a single line in Java. Examples: Input: N =… Read More

Start Your Coding Journey Now!