#java
Read more stories on Hashnode
Articles with this tag
Program to Reverse a String Input: str="Navnath" Original String is: "Navnath" Output: revstr="htanvaN" Reverse String is:...
Program to swap two numbers Input: Enter the value of X and Y num1=10 num2=20 Before swapping: 10 20 Output: num1=20 num2=10 After swapping: 20 ...
Problem Description Given a string A. The string contains some words separated by spaces.Return the number of words in the given string. Problem...
Given two strings s1 and s2, return true if s2 contains a permutation of s1, or false otherwise. In other words, return true if one of s1's...
Problem: For two strings s and t, we say "t divides s" if and only if s = t + ... + t (i.e., t is concatenated with itself one or more times). Given...
The Calendar class is an abstract class that provides methods for converting between a specific instant in time and a set of calendar fields such as...