Program to convert String to Float in java (example)
Given an String variable in java, we would like convert String to integer using Integer.parseInt, Integer.valueOf or Integer constructor (with example)
Given an String variable in java, we would like convert String to integer using Integer.parseInt, Integer.valueOf or Integer constructor (with example)
Given an String variable in java, we would like convert String to integer using Integer.parseInt, Integer.valueOf or Integer constructor (with example)
Given an String variable in java, we would like convert String to integer using Integer.parseInt, Integer.valueOf or Integer constructor (with example)
Introduction: Java 17 introduces groundbreaking features that enhance productivity, code maintainability, and performance. Learn about sealed classes, pattern matching for
Problem Statement: Given the array of integers. Choose two different indices i and j of that array. Find out product
Given two matrices in Java. Write a program two add matrices. Two matrices can be added only if they have
Given one dimensional array in java. Calculate running sum of array. Example to find running sum of array Example 1:
Given inputStream in Java Convert InputStream to String using InputStreamReader class in java. Methods of InputStreamReader used for inputStream to
Given an array of strings in java. We would like to sort an array of strings in alphabetical order using
Given String in java. We would like to count number of vowels & consonants In English there are 26 alphabets
What is ThreadLocalRandom? ThreadLocalRandom is used to generate random number typically for multi threading environment. ThreadLocalRandom is particularly useful to
Given String in java. We would like to print duplicate or repeated characters in a String. Examples: Duplicate or repeated
Problem Statement? Get IPAddress & Hostname, Canonical name for localhost. InetAddress class provides APIs to retrieve network details for localhost.
Given char value in java. We would like to convert char to string using following methods. toString method of Character
Given String value in java. We would like to convert String to char & char array using following methods. charAt
Given char array in java. We would like to convert char array to string using following methods. Java 8 Stream
Given two binary numbers in java We would like to find out sum of two binary numbers. Examples: add two
Given a integer number, check given number is positive. negative or zero. If the input number is greater than zero
Given a integer number, find out the power of given number. Methods to calculate power of given number. Calculate power
Problem Statement ? Given Principal amount (P). Rate of interest (R). Time Period (T) Find out the simple interest in
Problem Statement (Java Security): What is default provider used by cryptographic cipher. How to use providers apart from default providers
Problem Statement (Java Security): Print or list all Java Cryptography Extension (JCE)/Java Cryptography Architecture (JCA) providers configured in Java Runtime.
Problem Statement ? Install Bouncy Castle (BC) Provider for Java Cryptography Extension (JCE) and Java Cryptography Architecture (JCA) Install and Configure
Problem Statement ? Given URL (Uniform Resource Locator) or URI, we would like to encode URL to Base64 and decode
Problem Statement: Given input string or byte array, we would like to perform Base64 encoding withoutPadding. Base 64 Encoder class:
Problem Statement ? Given a string like password, byte array, we would like to perform Base64 encoding and decoding of
Given a decimal number (base 10), convert decimal number to hexadecimal (base 16) using java. We will discuss various methods
Given a decimal number (base 10), convert decimal number to octal (base 8) using java. We will discuss various methods
Problem Statement ? Given a number or integer in java, we would like to calculate the sum of all digits.
Given shared resources in java, Synchronize resources using CountDownLatch in java. Count down latch is concurrency (multi threading) construct (example).