// A "banner-style" rendering of numbers 1-10
//
// Zaphod_b
//
public class z
{
public static void main(String [] args)
{
int charHeight = zero.length; // All chars have this height
String [][] message = {
one, space, two, space, three, space, four, space, five, space,
six, space, seven, space, eight, space, nine, space,
one, zero
};
for (int row = 0; row < charHeight; row++)
{
for (int j = 0; j < message.length; j++)
{
System.out.print(message[j][row]);
}
System.out.println();
}
}// end of main
/*
Characters are from figlet/standard.flf font
Part of figlet package from
[url]ftp://ftp.figlet.org/pub/figlet/program/unix/[/url]
Standard font by Glenn Chappell & Ian Chai 3/93 -- based on Frank's .sig
Includes ISO Latin-1
figlet release 2.1 -- 12 Aug 1994
Modified for figlet 2.2 by John Cowan <cowan@ccil.org>
to add Latin-{2,3,4,5} support (Unicode U+0100-017F).
This simplified program has no kerning or smushing, but
just prints the chars as defined. The figlet program does it right!
Zaphod_b
*/
static String [] space = {
" ",
" ",
" ",
" ",
" ",
" "
};
static String [] zero = {
" ___ ",
" / _ \\ ",
"| | | |",
"| |_| |",
" \\___/ ",
" "
};
static String [] one = {
" _ ",
"/ |",
"| |",
"| |",
"|_|",
" "
};
static String [] two = {
" ____ ",
"|___ \\ ",
" __) |",
" / __/ ",
"|_____|",
" "
};
static String [] three = {
" _____ ",
"|___ / ",
" |_ \\ ",
" ___) |",
"|____/ ",
" "
};
static String [] four = {
" _ _ ",
"| || | ",
"| || |_ ",
"|__ _|",
" |_| ",
" "
};
static String [] five = {
" ____ ",
"| ___| ",
"|___ \\ ",
" ___) |",
"|____/ ",
" "
};
static String [] six = {
" __ ",
" / /_ ",
"| '_ \\ ",
"| (_) |",
" \\___/ ",
" "
};
static String [] seven = {
" _____ ",
"|___ |",
" / / ",
" / / ",
" /_/ ",
" "
};
static String [] eight = {
" ___ ",
" ( _ ) ",
" / _ \\ ",
"| (_) |",
" \\___/ ",
" "
};
static String [] nine = {
" ___ ",
" / _ \\ ",
"| (_) |",
" \\__, |",
" /_/ ",
" "
};
} // End of class definition