Wednesday, September 3, 2014

// // 1 comment

Java Program: Checkerboard Pattern of Asterisks

Question: Write an application that displays a checkerboard pattern, as follows:
Checkerboard pattern of asterisks
 * @Author: Aghatise Osazuwa
 * Website:
 * Exercise 2.27 - Checkerboard Pattern Of Asterisks

public class CheckerboardPatternOfAsterisks {
    public static void main (String [] args) {
        System.out.println ("This Application Displays A Checkerboard Pattern of "
                + "Astericks.");
        System.out.println ();
        System.out.print("********\n ********\n********\n ********\n"
                + "********\n ********\n********\n ********\n");

Note that this program can also be written using eight System.out.println statements.

Click here to see other answers to Java How to Program. You can also click here to see the same program in C.

1 comment:

DISCLAIMER: Opinions expressed in comments are those of the comment writers alone and does not reflect or represent the views of the post author. We reserve the right to delete any post deemed inappropriate or offensive and/or spammy. Please do not use abusive words/hate speech.

I Appreciate your valuable Feedback. So, Please DO NOT SPAM - Spam comments will be deleted immediately.

Don't use brand name in name field and you're not allowed to use links in comments unless it's necessary. Such comments will be removed immediately. To get notified of replies or follow-up comments, click the box next to notify me.