Expand|Select|Wrap|Line Numbers
- public class SpaceTest {
- public static void main(String[] args) {
- rod();
- top();
- line();
- bottom();
- rod();
- middle();
- top();
- line();
- }
- //Draw Rod
- public static void rod() {
- System.out.println(" ");
- for (int a = 1; a <= 4; a++) {
- System.out.println("| |");
- }
- }
- //Draw Top
- public static void top() {
- for (int space = 1; space <= (space * -3 + 12); space++) {
- System.out.print(" ");
- }
- System.out.print("__/");
- for (int dot = 1; dot <= (dot * 6 - 6); dot++) {
- System.out.print(":");
- }
- System.out.print("\\__");
- for (int space = 1; space <= (space * -3 + 12); space++) {
- System.out.print(" ");
- }
- }
- //Draw Line
- public static void line() {
- System.out.print("|");
- for (int bar = 1; bar <= 12; bar++) {
- System.out.print("\"\"");
- System.out.print("|");
- }
- }
- //Draw Bottom
- public static void bottom() {
- for (int space = 1; space <= (space * 2 - 2); space++) {
- System.out.print(" ");
- }
- System.out.print("\\__");
- for (int wave = 1; wave <= (wave * -2 + 13); wave++) {
- System.out.print("/\\");
- }
- System.out.print("__/");
- for (int space = 1; space <= (space * 2 - 2); space++) {
- System.out.print(" ");
- }
- }
- //Draw Middle
- public static void middle() {
- System.out.println(" ");
- for (int a = 1; a <= 11; a++) {
- System.out.println("|%%||%%|");
- }
- }
- }
Trying to get this image if any one can help.
||
||
||
||
__/||\__
__/:::||:::\__
__/::::::||::::::\__
__/:::::::::||:::::::::\__
|""""""""""""""""""""""""|
\_/\/\/\/\/\/\/\/\/\/\/\_/
\_/\/\/\/\/\/\/\/\/\_/
\_/\/\/\/\/\/\/\_/
\_/\/\/\/\/\_/
||
||
||
||
|%%||%%|
|%%||%%|
|%%||%%|
|%%||%%|
|%%||%%|
|%%||%%|
|%%||%%|
|%%||%%|
|%%||%%|
|%%||%%|
|%%||%%|
|%%||%%|
|%%||%%|
|%%||%%|
|%%||%%|
|%%||%%|
__/||\__
__/:::||:::\__
__/::::::||::::::\__
__/:::::::::||:::::::::\__
|""""""""""""""""""""""""|
||
||
||
__/||\__
__/:::||:::\__
__/::::::||::::::\__
__/:::::::::||:::::::::\__
|""""""""""""""""""""""""|
\_/\/\/\/\/\/\/\/\/\/\/\_/
\_/\/\/\/\/\/\/\/\/\_/
\_/\/\/\/\/\/\/\_/
\_/\/\/\/\/\_/
||
||
||
||
|%%||%%|
|%%||%%|
|%%||%%|
|%%||%%|
|%%||%%|
|%%||%%|
|%%||%%|
|%%||%%|
|%%||%%|
|%%||%%|
|%%||%%|
|%%||%%|
|%%||%%|
|%%||%%|
|%%||%%|
|%%||%%|
__/||\__
__/:::||:::\__
__/::::::||::::::\__
__/:::::::::||:::::::::\__
|""""""""""""""""""""""""|