12345678910111213141516171819202122232425262728293031 |
- // Copyright (c) 2018 Muhammad M. Imtiaz
- // This Work is subject to the terms of the Universal Permissive License,
- // Version 1.0. If a copy of the licence was not distributed with this Work,
- // you can obtain one at <https://oss.oracle.com/licenses/upl/>.
- /**
- * Muhammad M. Imtiaz
- * Friday 28 September 2018
- * Prints a star-like object in ASCII art, making sure to escape special characters and use "\n" with System.out.print instead of using System.out.println.
- **/
- class ASCII_Art {
- public static void main(String[] args) {
- String[] lines = { " /\\",
- " / \\",
- " / \\",
- "------ ----",
- "\\ /",
- " \\ /",
- " / /\\ \\",
- " / / \\ \\",
- "|_____/ _____\\|"
- };
- for(String line : lines)
- System.out.print(line + "\n");
- }
- }
|