Saturday, July 4, 2015

// // 1 comment

Java Program To Display Pattern

Java Display Pattern Program


The program below is the answer to Liang's Introduction To Java Programming (9th Edition) Chapter 1 Exercise 1.3.

Question: Write a program that displays the following pattern.

/**
 *
 * @Author: Aghatise Osazuwa
 * Website: www.cscprogrammingtutorials.com
 *
 * Exercise 1.3 - Display A Pattern
 *
 */ 

public class Ex01_03 {

	public static void main(String[] args) {

		System.out.print("     J        A       V     V       A       \n");
		System.out.print("     J       A A       V   V       A A      \n");
		System.out.print(" J   J      AAAAA       V V       AAAAA     \n");
		System.out.print("  J J      A     A       V       A     A    \n");

	}
}


Click here to see other solutions to Introduction to Java Programming.

1 comment:

  1. The post is written in very a good manner and it contains many useful information for me.

    ReplyDelete


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.

Thanks.