THINK FIRST·CODE LATER

← All labs

Rocket launch: backslashes and print

Problem

Write Rocket, which prints this picture and countdown (no input):

   /\
  /  \
 /    \
 +----+
 |JAVA|
 |    |
 +----+
 /_\/_\
3... 2... 1... Lift-off!
Mission: "Hello, World"
  • Every backslash in the picture must be written \\ inside a Java string.
  • The countdown 3... 2... 1... Lift-off! must be produced by four statements on one output line (print, print, print, println).
  • The last line contains quotation marks: use \".

Write it here or in your IDE, then paste it. Compile and test it yourself before comparing. Your code stays in your browser — it is never sent to or stored on the server.