Please bring up on your browser the Java API for the class String. You will need to use some of its methods here. Instead of trying to remember details of the language -which would be a rather impossible task as there literally thousands of classes there, you should become comfortable with using the on line java documentation, known as java API.
Write a program, named "PlayingWithWords", that given a word it prints each character of the word in capital and on a separate line: If the given word is "Sazma", it should print:
S A Z M A
Then, it also prints the word in reverse, like "amzaS" in our example.
Define two methods, one named writeLetterPerLine() and one named writeInReverse() to perform each of the tasks. You need to decide whether each method needs an input, and what its returned type should be. Since they will be called from the static main() they will have to also be defined as static methods.
Try to use two different kinds of loops in your program.
Here is a sample output of this program: