2014 dxdy logo

Научный форум dxdy

Математика, Физика, Computer Science, Machine Learning, LaTeX, Механика и Техника, Химия,
Биология и Медицина, Экономика и Финансовая Математика, Гуманитарные науки




 
 Java: ASCII Art
Сообщение14.03.2013, 22:22 
Привет!

My question: is there a simpler way to accomplish this task than observed in my code below?

Write a program named ASCIIArt that displays the following output on the screen:

http://postimage.org/image/ail415jfd/

Код:
// Displays Art made of ASCII characters

public class ASCIIArt   {
   public static void main(String[] args)   {
   
   System.out.println("\t      \'     \'                          _");
   System.out.println("\t     (\\____/)                         [ ]");
   System.out.println("\t      (_oo_)                         (   )");
   System.out.println("\t         (O)                          |>|");
   System.out.println("\t       __||__     \\)               __/===\\__");
   System.out.println("\t   [] /_____\\ []  /               // |o=o| \\\\ ");
   System.out.println("\t   /  \\______/ \\/               <]   |o=o|   [> ");
   System.out.println("\t  /     /__\\                        \\=====/ ");
   System.out.println("\t (\\    /____\\                       / / | \\ \\ ");
   System.out.println("\t                                   <_________>");
   }
}

 
 
 [ 1 сообщение ] 


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group