Java program that prints an imitation of a Piet Mondrian painting
Posted by Samath
Last Updated: January 08, 2021

Write a Java program that prints an imitation of a Piet Mondrian painting. Use character sequences such as '@@@' or ':::' to indicate different colors, and use - and | to form lines.

public class Main
{
	public static void main(String[] args) {
	    
        System.out.println("_________________|________|____");
        System.out.println("@@@@@@@@@@@@@@@@@|        |::::");
        System.out.println("@@@@@@@@@@@@@@@@@|        |::::");
        System.out.println("@@@@@@@@@@@@@@@@@|        |::::");
        System.out.println(":::::|    |::::::|        |::::");
        System.out.println(":::::|    |::::::|________|::::");
        System.out.println(":::::|    |::::::|@@@@@@@@|@@@@");
	}
}
Related Content