Question: Print Hello World as ‘Olleh Dlrow’ using Java. Problem Write a program to reverse a String or we can say that reverses each word in a sentence and also while printing the first letter should be in upper case. Input can contain any number of words as mentioned below: Input String:- Hello Worldask for helpYou Live Only OnceRead More
How to split String if it contains period symbol (.) in between? Problem: I have to write a program which takes file name with any extension as a parameter and it should return the extension of that file.
According to name, a Properties file is used to define properties of keys which would have been used in our Selenium project. A Property file contains data in Key=Value format. It helps external users to communicate with the code and generate output on the basis of inputs. Features of a Property File: Can be usedRead More
We can reverse a String via characters as well as with words. There are multiple ways to achieve it. Below are the methods to do do the same: converting a string into an array to reverse by characters Splitting String with blank spaces to reverse by words Using the reverse() method from the StringBuffer classRead More