#178 Printing Words in a Text Frame

Companies:
Digitalleague
Themes:
JavaStringsPractice

Implement a function that prints the text from the TEXT parameter in the format shown below:

public class Exercise1 {

    private static final String TEXT = "I am Java Developer";

    /*
     *   *************
     *   * I         *
     *   * am        *
     *   * Java      *
     *   * Developer *
     *   *************
     */

    public void printFormattedText() {
        throw new UnsupportedOperationException("Implemented it!");
    }
}

Question review

Mentor
Answer as you would in a real interview. I’ll ask follow-up questions, then compare your answer with the reference answer and show your accuracy as a %.
Sign in to start the dialogue The mentor keeps the context of the current question and your previous messages.
Sign in