Author Topic: Java Program to display abcd in a diamond shape pattern  (Read 4095 times)

kathir

  • Administrator
  • Sr. Member
  • *****
  • Posts: 283
Java Program to display abcd in a diamond shape pattern
« on: February 10, 2012, 06:28:15 pm »
Here is the Java Program to display abcd in a diamond shape pattern:

      A
    B C D
  E F G H I
J K L M N O P
  Q R S T U
    V W X
      Y



Code: (java)
//Source Code Listing

import java.lang.*;
import java.util.*;
import java.io.*;
 
 
class DisplayABC
{
      
      public static void main(String[] args)
      {
           System.out.println("Display ABC in diamond shape: ");
           int [] shape = new int [] { 1, 3, 5, 7, 5, 3, 1};
           int [] space = new int [] { 6, 4, 2, 0, 2, 4, 6};
           int count = 0;
           int rowindex = 0;
           for(int i = 0; i < 26; i++)
           {
                if(count == 0)
                {
                  int spacecount = space[rowindex];
                  for(int j = 0; j < spacecount; j++)
                     System.out.print(" ");
                }  
                System.out.format("%1$-2c", (char) (i + 'A') );
                count++;
                if(shape[rowindex] == count)
                {
                  System.out.println();
                  rowindex++;
                  count = 0;
                }
           }
      }
}


patriceis16

  • Group8
  • *
  • Posts: 1
    • Grown up site
Re: Java Program to display abcd in a diamond shape pattern
« Reply #1 on: March 06, 2017, 07:52:28 pm »
After my modish engagement
http://rivera.femdom.twiclub.in/?dispatch.elizabeth
 erotic comics pdf sex live erotic mp erotical nights erotic romances

ursulaal11

  • Group8
  • *
  • Posts: 1
    • Unshackle galleries
Re: Java Program to display abcd in a diamond shape pattern
« Reply #2 on: March 08, 2017, 03:53:37 am »
 Novel work
http://teen.polish.yopoint.in/?post.jaime
 emily osment porn fake porn hub sexy wife shower audition porn drunk abused porn free psp porn galleries 

brookeeg11

  • Group8
  • *
  • Posts: 1
    • Loose galleries
Re: Java Program to display abcd in a diamond shape pattern
« Reply #3 on: March 19, 2017, 11:19:28 am »
Check my altered engagement
http://pattaya.girls.blogporn.in/?post.jane
 komik performing teens lord athan

bertamq18

  • Group8
  • *
  • Posts: 1
    • Unencumbered galleries
Re: Java Program to display abcd in a diamond shape pattern
« Reply #4 on: March 21, 2017, 07:25:08 am »
 New adult blog website
   extreme penis sounding kids summer dresses stories hypnosis erotic 
http://sissytales.porndairy.in/?blog.ainsley
  how to hypnotist free dictionary download for laptop apartments for rent cape town fiction femdom tv seriex hbo bdsm and submission party dresses sale my fiance is gay 

maxinepw11

  • Group8
  • *
  • Posts: 1
Re: Java Program to display abcd in a diamond shape pattern
« Reply #5 on: March 22, 2017, 10:59:55 pm »
 Original work
http://onstrapon.purplesphere.in/?register.abigayle
 erotic fan fiction free adult games erotic texts erotic trailers erotic modeling

lilaao16

  • Group8
  • *
  • Posts: 1
    • Delivered grown-up galleries
Re: Java Program to display abcd in a diamond shape pattern
« Reply #6 on: March 26, 2017, 02:03:13 pm »
Check my new devise
http://euro.tits.epornstar.xyz/?entry.jeanette
 xxx cock porn xxx extreme leather porn free deep throat porn videos free vintate porn video islamic about porn 

ettamd3

  • Group8
  • *
  • Posts: 1
    • Free galleries
Re: Java Program to display abcd in a diamond shape pattern
« Reply #7 on: March 30, 2017, 04:34:42 am »
 Hi new website
http://europe.meet.erolove.top/?epoch.tatyana
  bangalore girls for chatting sex toys single white male dating site married but dating sites where can i meet cougars 

jamesdm69

  • Group8
  • *
  • Posts: 1
    • Loose full-grown galleries
Re: Java Program to display abcd in a diamond shape pattern
« Reply #8 on: April 01, 2017, 12:46:21 am »
 My updated project is super!
 spy mobile app how android app developer make money best apps for song download sexy girls with photo apps software free download
http://adult.android.market.sexblog.pw/?epoch.arielle
 android free app downloader android telefoner app downloading app launcher android phone android football game 

pearlieos1

  • Group8
  • *
  • Posts: 1
Re: Java Program to display abcd in a diamond shape pattern
« Reply #9 on: April 03, 2017, 12:00:26 am »
 Hi fashionable website
http://amateur.selfies.purplesphere.in/?gain.priscilla
 erotic korean erotic thriller erotic hug the erotic networks sex sex

nathanielxy16

  • Group8
  • *
  • Posts: 1
    • Latest spot
Re: Java Program to display abcd in a diamond shape pattern
« Reply #10 on: April 09, 2017, 01:08:43 am »
 Original work
http://ashlynn.pornpost.in/?page.jada
  chat rooms friends free married sites free adult contacts uk no strings sex website affairs dating 

allengi1

  • Group8
  • *
  • Posts: 1
    • Matured site
Re: Java Program to display abcd in a diamond shape pattern
« Reply #11 on: April 10, 2017, 07:07:42 pm »
 My contemporary number
http://datetips.sexblog.top/?entry.mackenzie
  dating site japan local free sex contacts hispanic free dating sites fitness online dating singapore date 

annmariesm11

  • Group8
  • *
  • Posts: 1
    • Adult galleries
Re: Java Program to display abcd in a diamond shape pattern
« Reply #12 on: April 12, 2017, 06:19:19 am »
 Adult blog with daily updates
   girls wearing tampons what wives want from husbands how to make a homemade cock 
http://sissythings.pornpost.in/?read.abigail
  mature women seduce silk satin underwear sexy dresses online shop kotex tampon coupons family holiday all inclusive 2015 teen sex doll the top boy names tapered jeans 

duaneqq16

  • Group8
  • *
  • Posts: 1
    • Unshackle galleries
Re: Java Program to display abcd in a diamond shape pattern
« Reply #13 on: April 13, 2017, 10:53:44 pm »
  Started up to date cobweb throw
 free downloads games for android download google store android jogos no android free softwares for android google apps store download free
http://pornapps.xblog.in/?gain.brianne
 android app company best android dating apps sexy girl xxx download android software free download download mobile voip for android 

karlrz3

  • Group8
  • *
  • Posts: 1
    • My brand-new website
Re: Java Program to display abcd in a diamond shape pattern
« Reply #14 on: April 15, 2017, 09:12:43 pm »
 My new time
 tubidy mobi app free download best free apps to get app store o play store www vreif com games mobile9 free themes for android
http://erotic.apps.android.blogporn.in/?gain.monique
 apps furs tablet top best android apps free hotstar app apk free download chat rooms for mobile update zip android download 

 


Disclaimer: This web site is for educational and informational purposes only. Click here to read the Disclaimer.
Content copyright 2010-2014. Kathiresan. All rights reserved.
This page is using SMF version 2.0.1