How to code this thing? im confused

look at the picture how will you code that thing? i was only able to code the

square one.

http://img341.imageshack.us/img341/6749/asteriskga2.jpg

[196 byte] By [nemo666a] at [2007-11-27 11:37:20]
# 1

i know exactly how i would code that.

mostly because for the last 3 years people have been asking the

same question, so ive had a while to think about it.

TuringPesta at 2007-7-29 17:13:56 > top of Java-index,Java Essentials,New To Java...
# 2

#! /usr/bin/groovy

println '''

************* *

******** *

***********

*******

*******

*******

*******

****** *

************* *

'''

~

yawmarka at 2007-7-29 17:13:56 > top of Java-index,Java Essentials,New To Java...
# 3

thats it yawmark im officially nominating you to make a

99 bottles of beer Groovy entry:

http://99-bottles-of-beer.net/language-groovy-837.html

TuringPesta at 2007-7-29 17:13:56 > top of Java-index,Java Essentials,New To Java...
# 4

> thats it yawmark im officially nominating you to make a

> 99 bottles of beer Groovy entry:

It's already been done!

~

yawmarka at 2007-7-29 17:13:56 > top of Java-index,Java Essentials,New To Java...
# 5

where talkin about java and not perl or whatever

#usr/bin/

nemo666a at 2007-7-29 17:13:56 > top of Java-index,Java Essentials,New To Java...
# 6

> where talkin about java and not perl or whatever

> #usr/bin/

I was talking about Groovy, a standardized language for the Java platform. But, that's okay. Here you go, Mr. Picky-Pants:

class Foo {

public static void main(String[] args) throws Exception {

System.out.println("************* *");

System.out.println("******** *");

System.out.println("***********");

System.out.println("*******");

System.out.println("*******");

System.out.println("*******");

System.out.println("*******");

System.out.println("****** *");

System.out.println("************* *");

}

}

I aim to please.

~

yawmarka at 2007-7-29 17:13:56 > top of Java-index,Java Essentials,New To Java...
# 7

throws Exception {

...just in case it takes exception to your bad artwork.

whats the matter yawmark you cant antialias ascii

art in groovy? ; )

TuringPesta at 2007-7-29 17:13:56 > top of Java-index,Java Essentials,New To Java...
# 8

> ...just in case it takes exception to your bad artwork.

Well, that's what I get for reusing scratch classes. Color me a lazy programmer.

~

yawmarka at 2007-7-29 17:13:57 > top of Java-index,Java Essentials,New To Java...
# 9

geeze it seems like a lot more work in java.... I gotta look into this groovy thing.

petes1234a at 2007-7-29 17:13:57 > top of Java-index,Java Essentials,New To Java...
# 10

>> Color me a lazy programmer.

speaking of color, where is it?

how is nemo going to get an A+ on his assignment?

TuringPesta at 2007-7-29 17:13:57 > top of Java-index,Java Essentials,New To Java...
# 11

> geeze it seems like a lot more work in java.... I

> gotta look into this groovy thing.

Groovy isnt a real thing. yawmark is just a very disturbed man

mentally who after years of programming snapped completely.

we let him carry on about his fantastical language because it calms

him. there there my friend. there there.

TuringPesta at 2007-7-29 17:13:57 > top of Java-index,Java Essentials,New To Java...
# 12

> speaking of color, where is it?

Picky McNicky.

#! /usr/bin/groovy

import static java.awt.Color.*

import static java.awt.Font.*

import static javax.swing.JFrame.*

import java.awt.Font

import groovy.swing.SwingBuilder

pattern = '''

************* *

******** *

***********

*******

*******

*******

*******

****** *

************* *

'''

swing = new SwingBuilder()

gui = swing.frame(defaultCloseOperation:EXIT_ON_CLOSE) {

textArea(text:pattern,

editable:false,

columns:50,

rows:10,

font:Font.decode(MONOSPACED),

background:BLUE)

}

gui.pack()

gui.show()

~

yawmarka at 2007-7-29 17:13:57 > top of Java-index,Java Essentials,New To Java...
# 13

thats right friend we could run that in your magic "groovy" compiler.

<whisper> he must be off his meds again </whisper>

TuringPesta at 2007-7-29 17:13:57 > top of Java-index,Java Essentials,New To Java...
# 14

> thats right friend we could run that in your

> magic "groovy" compiler.

> <whisper> he must be off his meds again </whisper>

Phear teh Groove.

~

yawmarka at 2007-7-29 17:13:57 > top of Java-index,Java Essentials,New To Java...