Java Eclipse homework. I need help coding this

Project Folder: Lesson 03
package: challenge3B
Class: ChallengeProject3B

Complete the code challenge below.

(You will need to use escape sequences to print the \ and “ characters )

Write a program that displays the following:

1. Write code that displays your name inside a box on the console screen, like this:

+-----------------+

­­| Your Name |

+-----------------+

2. Write code that prints a face, using text characters, hopefully better looking than this one:

//////

| o o |

(| ^ |)

| \_/ |

-------

3. Write code that prints a tree:

/\

/ \

/ \

/ \

--------------

“ “

“ “

“ “

Respuesta :

public class ChallengeProject3B{

   public static void main(String [] args){

       System.out.println("+-----------------+");

       System.out.println("|   YOURNAME      |");

       System.out.println("+-----------------+");

       System.out.println("\n//////");

       System.out.println("| o o|");

       System.out.println("|\\_/|");

       System.out.println("-----");

       System.out.println("\n/\\");

       System.out.println("/\\");

       System.out.println("/\\");

       System.out.println("/\\");

       System.out.println("--------------");

   }

}

I hope this helps!

ACCESS MORE
EDU ACCESS