From e958e153c51edcb3e6c6d4db792d2e242be4e84d Mon Sep 17 00:00:00 2001 From: citlallixx03 <2282785651citlali@gmail.com> Date: Wed, 28 Feb 2024 08:12:48 -0600 Subject: [PATCH] versionfinal --- AsciiArt/src/asciiart/AsciiArt_1.java | 833 ++++++++++++++++++++++++++ 1 file changed, 833 insertions(+) create mode 100644 AsciiArt/src/asciiart/AsciiArt_1.java diff --git a/AsciiArt/src/asciiart/AsciiArt_1.java b/AsciiArt/src/asciiart/AsciiArt_1.java new file mode 100644 index 0000000..567d6aa --- /dev/null +++ b/AsciiArt/src/asciiart/AsciiArt_1.java @@ -0,0 +1,833 @@ +import java.util.Scanner; +import java.io.*; + +public class AsciiArt_1 { + + private int x; + private int y; + private char [][] lienzo; + File archivo= null; + FileReader fr= null; + FileWriter fw= null; + BufferedWriter bw= null; + + public void paint1(int x, int y) { //cambiar x y y. + + this.x=x; //filas + this.y=y; //columnas + + lienzo=new char [30][30]; + + //primera linea + for (int i=1; i<6; i++){ + lienzo[x][y+i] = ' '; + } + lienzo[x][y+6] = '/'; + lienzo[x][y+7] = '^'; + for (int i=8; i<12; i++){ + lienzo[x][y+i] = ' '; + } + lienzo[x][y+12] = '^'; + lienzo[x][y+13] = '\\'; + + //segunda linea + for (int i=1; i<5; i++){ + lienzo[x+2][y+i] = ' '; + } + lienzo[x+2][y+5] = '/'; + for (int i=6; i<8; i++){ + lienzo[x+2][y+i] = ' '; + } + lienzo[x+2][y+8] = '0'; + for (int i=9; i<11; i++){ + lienzo[x+2][y+i] = ' '; + } + lienzo[x+2][y+11] = '0'; + for (int i=12; i<14; i++){ + lienzo[x+2][y+i] = ' '; + } + lienzo[x+2][y+14] = '\\'; + + //tercera linea + for (int i=1; i<4; i++){ + lienzo[x+4][y+i] = ' '; + } + lienzo[x+4][y+4] = 'V'; + lienzo[x+4][y+5] = '\\'; + for (int i=6; i<10; i++){ + lienzo[x+4][y+i] = ' '; + } + lienzo[x+4][y+10] = 'Y'; + for (int i=11; i<14; i++){ + lienzo[x+4][y+i] = ' '; + } + lienzo[x+4][y+14] = '/'; + lienzo[x+4][y+15] = 'V'; + + //cuarta linea + for (int i=1; i<5; i++){ + lienzo[x+6][y+i] = ' '; + } + lienzo[x+6][y+5] = '/'; + for (int i=6; i<10; i++){ + lienzo[x+6][y+i] = ' '; + } + lienzo[x+6][y+10] = '-'; + for (int i=11; i<14; i++){ + lienzo[x+6][y+i] = ' '; + } + lienzo[x+6][y+14] = '\\'; + + //5 linea + for (int i=1; i<4; i++){ + lienzo[x+8][y+i] = ' '; + } + lienzo[x+8][y+4] = '/'; + for (int i=5; i<14; i++){ + lienzo[x+8][y+i] = ' '; + } + lienzo[x+8][y+14] = '|'; + + //6 linea + for (int i=1; i<3; i++){ + lienzo[x+10][y+i] = ' '; + } + lienzo[x+10][y+3] = 'V'; + for (int i=4; i<11; i++){ + lienzo[x+10][y+i] = '_'; + } + lienzo[x+10][y+11] = ')'; + lienzo[x+10][y+12] = ' '; + lienzo[x+10][y+13] = '|'; + lienzo[x+10][y+14] = '|'; + + //for para imprimir + for (int i = 0; i < 30; i++) { + for (int j = 0; j < 30; j++) { + System.out.print(lienzo[i][j] + " "); + } + System.out.println(); + } + } + + public void guardarPaint1(){ + try { + archivo= new File ("Perrito.txt"); + fw = new FileWriter(archivo); + bw = new BufferedWriter(fw); + + bw.write(" /^ ^\\"); + bw.write("\n / 0 0 \\"); + bw.write("\n V\\ Y /V"); + bw.write("\n / - \\"); + bw.write("\n / |"); + bw.write("\n V_________) ||"); + + bw.flush(); + fw.close(); + System.out.println("El perrito AsciiArt ha sido guardado.\n"); + + } catch (IOException e){ + System.out.println("Error e/s: "+e.getMessage()); + } + } + + public void paint2(int x, int y) { + + this.x=x; //filas + this.y=y; //columnas + + lienzo=new char [35][35]; + + //primera linea + for (int i=1; i<16; i++){ + lienzo[x][y+i] = ' '; + } + for (int i=16; i<18; i++){ + lienzo[x][y+i] = '_'; + } + lienzo[x][y+18] = '/'; + lienzo[x][y+19] = ')'; + + //segunda linea + for (int i=1; i<13; i++){ + lienzo[x+2][y+i] = ' '; + } + lienzo[x+2][y+13] = '.'; + lienzo[x+2][y+14] = '-'; + lienzo[x+2][y+15] = '('; + for (int i=16; i<18; i++){ + lienzo[x+2][y+i] = '_'; + } + lienzo[x+2][y+18] = '('; + lienzo[x+2][y+19] = '='; + lienzo[x+2][y+20] = ':'; + + //3 linea + for (int i=1; i<13; i++){ + lienzo[x+4][y+i] = ' '; + } + lienzo[x+4][y+13] = '|'; + for (int i=14; i<18; i++){ + lienzo[x+4][y+i] = ' '; + } + lienzo[x+4][y+18] = '\\'; + lienzo[x+4][y+19] = ')'; + + //4 linea + for (int i=1; i<7; i++){ + lienzo[x+6][y+i] = ' '; + } + lienzo[x+6][y+7] = '('; + lienzo[x+6][y+8] = '\\'; + for (int i=9; i<11; i++){ + lienzo[x+6][y+i] = '_'; + } + for (int i=11; i<13; i++){ + lienzo[x+6][y+i] = ' '; + } + lienzo[x+6][y+13] = '|'; + //hacer un for para rellenar los espacios opcional + + //linea 5 + for (int i=1; i<6; i++){ + lienzo[x+8][y+i] = ' '; + } + lienzo[x+8][y+6] = ':'; + lienzo[x+8][y+7] = '='; + lienzo[x+8][y+8] = ')'; + for (int i=9; i<11; i++){ + lienzo[x+8][y+i] = '_'; + } + lienzo[x+8][y+11] = ')'; + lienzo[x+8][y+12] = '-'; + lienzo[x+8][y+13] = '|'; + for (int i=14; i<16; i++){ + lienzo[x+8][y+i] = ' '; + } + for (int i=16; i<18; i++){ + lienzo[x+8][y+i] = '_'; + } + lienzo[x+8][y+18] = '/'; + lienzo[x+8][y+19] = ')'; + + //6 linea + for (int i=1; i<7; i++){ + lienzo[x+10][y+i] = ' '; + } + lienzo[x+10][y+7] = '('; + lienzo[x+10][y+8] = '/'; + for (int i=9; i<13; i++){ + lienzo[x+10][y+i] = ' '; + } + lienzo[x+10][y+13] = '|'; + lienzo[x+10][y+14] = '-'; + lienzo[x+10][y+15] = '('; + for (int i=16; i<18; i++){ + lienzo[x+10][y+i] = '_'; + } + lienzo[x+10][y+18] = '('; + lienzo[x+10][y+19] = '='; + lienzo[x+10][y+20] = ':'; + + //7 linea + for (int i=1; i<4; i++){ + lienzo[x+12][y+i] = ' '; + } + for (int i=4; i<10; i++){ + lienzo[x+12][y+i] = '_'; + } + for (int i=10; i<13; i++){ + lienzo[x+12][y+i] = '.'; + } + lienzo[x+12][y+13] = '|'; + for (int i=14; i<16; i++){ + lienzo[x+12][y+i] = ' '; + } + lienzo[x+12][y+16] = '_'; + lienzo[x+12][y+17] = ' '; + lienzo[x+12][y+18] = '\\'; + lienzo[x+12][y+19] = ')'; + + //linea 8 + lienzo[x+14][y+1]= ' '; + lienzo[x+14][y+2]= ' '; + lienzo[x+14][y+3]= '/'; + for (int i=4; i<11; i++){ + lienzo[x+14][y+i]= ' '; + } + + lienzo[x+14][y+11]= '\\'; + lienzo[x+14][y+12]= ' '; + lienzo[x+14][y+13]= '|'; + lienzo[x+14][y+14]= ' '; + lienzo[x+14][y+15]= '/'; + lienzo[x+14][y+16]= ' '; + lienzo[x+14][y+17]= '\\'; + + //linea 9 + for (int i=1; i<9; i++){ + lienzo[x+16][y+i]= ' '; + } + for (int i=9; i<12; i++){ + lienzo[x+16][y+i]= '_'; + } + lienzo[x+16][y+12]= '\\'; + lienzo[x+16][y+13]= '|'; + lienzo[x+16][y+14]= '/'; + for (int i=15; i<18; i++){ + lienzo[x+16][y+i]= '_'; + } + lienzo[x+16][y+18]= '\\'; + + //linea 10 + for (int i=1; i<8; i++){ + lienzo[x+18][y+i]= ' '; + } + lienzo[x+18][y+8]= '['; + for (int i=9; i<17; i++){ + lienzo[x+18][y+i]= ' '; + } + lienzo[x+18][y+17]= ']'; + lienzo[x+18][y+18]= ' '; + lienzo[x+18][y+19]= '\\'; + + //linea 11 + for (int i=1; i<9; i++){ + lienzo[x+20][y+i]= ' '; + } + lienzo[x+20][y+9]= '\\'; + for (int i=10; i<17; i++){ + lienzo[x+20][y+i]= ' '; + } + lienzo[x+20][y+17]= '/'; + lienzo[x+20][y+18]= ' '; + lienzo[x+20][y+19]= ' '; + lienzo[x+20][y+20]= '\\'; + + //linea 12 + for (int i=1; i<10; i++){ + lienzo[x+22][y+i]= ' '; + } + lienzo[x+22][y+10]= '\\'; + for (int i=11; i<16; i++){ + lienzo[x+22][y+i]= ' '; + } + lienzo[x+22][y+16]= '/'; + + //linea 13 + for (int i=1; i<11; i++){ + lienzo[x+24][y+i]= ' '; + } + lienzo[x+24][y+11]= '\\'; + for (int i=12; i<15; i++){ + lienzo[x+24][y+i]= '_'; + } + lienzo[x+24][y+15]= '/'; + + //for para imprimir + for (int i = 0; i < 35; i++) { + for (int j = 0; j < 35; j++) { + System.out.print(lienzo[i][j] + " "); + } + System.out.println(); + } + } + + public void guardarPaint2(){ + try { + archivo= new File ("Planta.txt"); + fw = new FileWriter(archivo); + bw = new BufferedWriter(fw); + + bw.write(" __/)"); + bw.write("\n .-(__(=:"); + bw.write("\n | \\)"); + bw.write("\n (\\__ |"); + bw.write("\n :=)__)-| __/)"); + bw.write("\n (/ |-(__(=:"); + bw.write("\n ______ | _ \\)"); + bw.write("\n / \\ | / \\"); + bw.write("\n ___\\|/___\\"); + bw.write("\n [ ]\\"); + bw.write("\n \\ / \\"); + bw.write("\n \\ /"); + bw.write("\n \\___/"); + + bw.flush(); + fw.close(); + System.out.println("La planta Asciiart ha sido guardada.\n"); + + } catch (IOException e){ + System.out.println("Error e/s: "+e.getMessage()); + } + + } + + public void paint3(int x, int y){ + + this.x=x; //filas + this.y=y; //columnas + + lienzo=new char [55][55]; + + //1 linea + for (int i=1; i<7; i++){ + lienzo[x][y+i] = ' '; + } + for (int i=7; i<23; i++){ + lienzo[x][y+i] = '_'; + } + for (int i=23; i<26; i++){ + lienzo[x][y+i] = ' '; + } + for (int i=26; i<44; i++){ + lienzo[x][y+i] = '_'; + } + + //2 linea + lienzo[x+2][y+1] = '.'; + lienzo[x+2][y+2] = '-'; + lienzo[x+2][y+3] = '/'; + lienzo[x+2][y+4] = '|'; + for (int i=5; i<22; i++){ + lienzo[x+2][y+i] = ' '; + } + lienzo[x+2][y+22] = '\\'; + lienzo[x+2][y+23] = ' '; + lienzo[x+2][y+24] = '/'; + for (int i=25; i<42; i++){ + lienzo[x+2][y+i] = ' '; + } + lienzo[x+2][y+42] = '|'; + lienzo[x+2][y+43] = '\\'; + lienzo[x+2][y+44] = '-'; + lienzo[x+2][y+45] = '.'; + + //3 linea + for (int i=1; i<5; i++){ + lienzo[x+3][y+i]='|'; + } + for (int i=5; i<23; i++){ + lienzo[x+3][y+i]=' '; + } + lienzo[x+3][y+23]='|'; + for (int i=25; i<42; i++){ + lienzo[x+3][y+i]=' '; + } + for (int i=42; i<46; i++){ + lienzo[x+3][y+i]='|'; + } + + //4 linea + for (int i=1; i<5; i++){ + lienzo[x+4][y+i]='|'; + } + for (int i=5; i<11; i++){ + lienzo[x+4][y+i]=' '; + } + lienzo[x+4][y+11]='H'; + lienzo[x+4][y+12]='O'; + lienzo[x+4][y+13]='L'; + lienzo[x+4][y+14]='A'; + for (int i=15; i<23; i++){ + lienzo[x+4][y+i]=' '; + } + lienzo[x+4][y+23]='|'; + for (int i=24; i<30; i++){ + lienzo[x+4][y+i]=' '; + } + lienzo[x+4][y+30]='M'; + lienzo[x+4][y+31]='U'; + lienzo[x+4][y+32]='N'; + lienzo[x+4][y+33]='D'; + lienzo[x+4][y+34]='O'; + lienzo[x+4][y+35]=';'; + for (int i=36; i<42; i++){ + lienzo[x+4][y+i]=' '; + } + for (int i=42; i<46; i++){ + lienzo[x+4][y+i]='|'; + } + + //5 linea + for (int i=1; i<5; i++){ + lienzo[x+5][y+i]='|'; + } + for (int i=5; i<9; i++){ + lienzo[x+5][y+i]=' '; + } + lienzo[x+5][y+9]='-'; + lienzo[x+5][y+10]='-'; + lienzo[x+5][y+11]='='; + lienzo[x+5][y+12]='='; + lienzo[x+5][y+13]='*'; + lienzo[x+5][y+14]='='; + lienzo[x+5][y+15]='='; + lienzo[x+5][y+16]='-'; + lienzo[x+5][y+17]='-'; + for (int i=18; i<24; i++){ + lienzo[x+5][y+i]=' '; + } + lienzo[x+5][y+24]='|'; + for (int i=24; i<28; i++){ + lienzo[x+5][y+i]=' '; + } + lienzo[x+5][y+28]='-'; + lienzo[x+5][y+29]='-'; + lienzo[x+5][y+30]='='; + lienzo[x+5][y+31]='='; + lienzo[x+5][y+32]='*'; + lienzo[x+5][y+33]='='; + lienzo[x+5][y+34]='='; + lienzo[x+5][y+35]='-'; + lienzo[x+5][y+36]='-'; + for (int i=36; i<42; i++){ + lienzo[x+5][y+i]=' '; + } + for (int i=42; i<46; i++){ + lienzo[x+5][y+i]='|'; + } + + //6 linea + for (int i=1; i<5; i++){ + lienzo[x+6][y+i]='|'; + } + for (int i=5; i<23; i++){ + lienzo[x+6][y+i]=' '; + } + lienzo[x+6][y+23]='|'; + for (int i=25; i<42; i++){ + lienzo[x+6][y+i]=' '; + } + for (int i=42; i<46; i++){ + lienzo[x+6][y+i]='|'; + } + + //7 linea + for (int i=1; i<5; i++){ + lienzo[x+7][y+i]='|'; + } + for (int i=5; i<23; i++){ + lienzo[x+7][y+i]=' '; + } + lienzo[x+7][y+23]='|'; + for (int i=25; i<42; i++){ + lienzo[x+7][y+i]=' '; + } + for (int i=42; i<46; i++){ + lienzo[x+7][y+i]='|'; + } + + //8 linea + for (int i=1; i<5; i++){ + lienzo[x+8][y+i]='|'; + } + for (int i=5; i<23; i++){ + lienzo[x+8][y+i]=' '; + } + lienzo[x+8][y+23]='|'; + for (int i=25; i<42; i++){ + lienzo[x+8][y+i]=' '; + } + for (int i=42; i<46; i++){ + lienzo[x+8][y+i]='|'; + } + + //9 linea + for (int i=1; i<5; i++){ + lienzo[x+9][y+i]='|'; + } + for (int i=5; i<23; i++){ + lienzo[x+9][y+i]=' '; + } + lienzo[x+9][y+23]='|'; + for (int i=25; i<42; i++){ + lienzo[x+9][y+i]=' '; + } + for (int i=42; i<46; i++){ + lienzo[x+9][y+i]='|'; + } + + //10 linea + for (int i=1; i<5; i++){ + lienzo[x+10][y+i]='|'; + } + for (int i=5; i<23; i++){ + lienzo[x+10][y+i]=' '; + } + lienzo[x+10][y+23]='|'; + for (int i=25; i<42; i++){ + lienzo[x+10][y+i]=' '; + } + for (int i=42; i<46; i++){ + lienzo[x+10][y+i]='|'; + } + + //11 linea + for (int i=1; i<5; i++){ + lienzo[x+11][y+i]='|'; + } + for (int i=5; i<23; i++){ + lienzo[x+11][y+i]=' '; + } + lienzo[x+11][y+23]='|'; + for (int i=25; i<42; i++){ + lienzo[x+11][y+i]=' '; + } + for (int i=42; i<46; i++){ + lienzo[x+11][y+i]='|'; + } + + //12 linea + for (int i=1; i<5; i++){ + lienzo[x+12][y+i]='|'; + } + for (int i=5; i<23; i++){ + lienzo[x+12][y+i]=' '; + } + lienzo[x+12][y+23]='|'; + for (int i=25; i<42; i++){ + lienzo[x+12][y+i]=' '; + } + for (int i=42; i<46; i++){ + lienzo[x+12][y+i]='|'; + } + + //13 linea + for (int i=1; i<5; i++){ + lienzo[x+13][y+i]='|'; + } + for (int i=5; i<23; i++){ + lienzo[x+13][y+i]=' '; + } + lienzo[x+13][y+23]='|'; + for (int i=25; i<42; i++){ + lienzo[x+13][y+i]=' '; + } + for (int i=42; i<46; i++){ + lienzo[x+13][y+i]='|'; + } + + //14 linea + for (int i=1; i<5; i++){ + lienzo[x+14][y+i]='|'; + } + for (int i=5; i<23; i++){ + lienzo[x+14][y+i]=' '; + } + lienzo[x+14][y+23]='|'; + for (int i=25; i<42; i++){ + lienzo[x+14][y+i]=' '; + } + for (int i=42; i<46; i++){ + lienzo[x+14][y+i]='|'; + } + + //15 linea + for (int i=1; i<5; i++){ + lienzo[x+15][y+i]='|'; + } + for (int i=5; i<23; i++){ + lienzo[x+15][y+i]=' '; + } + lienzo[x+15][y+23]='|'; + for (int i=25; i<42; i++){ + lienzo[x+15][y+i]=' '; + } + for (int i=42; i<46; i++){ + lienzo[x+15][y+i]='|'; + } + + //16 linea + for (int i=1; i<5; i++){ + lienzo[x+16][y+i]='|'; + } + for (int i=5; i<23; i++){ + lienzo[x+16][y+i]=' '; + } + lienzo[x+16][y+23]='|'; + for (int i=25; i<42; i++){ + lienzo[x+16][y+i]=' '; + } + for (int i=42; i<46; i++){ + lienzo[x+16][y+i]='|'; + } + + //17 linea + for (int i=1; i<5; i++){ + lienzo[x+17][y+i]='|'; + } + for (int i=5; i<23; i++){ + lienzo[x+17][y+i]=' '; + } + lienzo[x+17][y+23]='|'; + for (int i=25; i<42; i++){ + lienzo[x+17][y+i]=' '; + } + for (int i=42; i<46; i++){ + lienzo[x+17][y+i]='|'; + } + + //18 linea + for (int i=1; i<5; i++){ + lienzo[x+18][y+i]='|'; + } + for (int i=5; i<23; i++){ + lienzo[x+18][y+i]=' '; + } + lienzo[x+18][y+23]='|'; + for (int i=25; i<42; i++){ + lienzo[x+18][y+i]=' '; + } + for (int i=42; i<46; i++){ + lienzo[x+18][y+i]='|'; + } + + //19 linea + for (int i=1; i<5; i++){ + lienzo[x+19][y+i]='|'; + } + for (int i=5; i<23; i++){ + lienzo[x+19][y+i]=' '; + } + lienzo[x+19][y+23]='|'; + for (int i=25; i<42; i++){ + lienzo[x+19][y+i]=' '; + } + for (int i=42; i<46; i++){ + lienzo[x+19][y+i]='|'; + } + + //20 linea + for (int i=1; i<5; i++){ + lienzo[x+20][y+i]='|'; + } + for (int i=5; i<23; i++){ + lienzo[x+20][y+i]=' '; + } + lienzo[x+20][y+23]='|'; + for (int i=25; i<42; i++){ + lienzo[x+20][y+i]=' '; + } + for (int i=42; i<46; i++){ + lienzo[x+20][y+i]='|'; + } + + //21 linea + for (int i=1; i<5; i++){ + lienzo[x+21][y+i]='|'; + } + for (int i=5; i<23; i++){ + lienzo[x+21][y+i]=' '; + } + lienzo[x+21][y+23]='|'; + for (int i=25; i<42; i++){ + lienzo[x+21][y+i]=' '; + } + for (int i=42; i<46; i++){ + lienzo[x+21][y+i]='|'; + } + + //22 linea + for (int i=1; i<5; i++){ + lienzo[x+22][y+i]='|'; + } + for (int i=5; i<22; i++){ + lienzo[x+22][y+i]='_'; + } + lienzo[x+22][y+22]=' '; + lienzo[x+22][y+23]='|'; + lienzo[x+22][y+24]=' '; + + for (int i=25; i<42; i++){ + lienzo[x+22][y+i]='_'; + } + for (int i=42; i<46; i++){ + lienzo[x+22][y+i]='|'; + } + + //23 linea + lienzo[x+23][y+1]='|'; + lienzo[x+23][y+2]='|'; + lienzo[x+23][y+3]='\\'; + for (int i=4; i<22; i++){ + lienzo[x+23][y+i]='='; + } + lienzo[x+23][y+22]='\\'; + lienzo[x+23][y+23]='|'; + lienzo[x+23][y+24]='\\'; + for (int i=25; i<43; i++){ + lienzo[x+23][y+i]='='; + } + lienzo[x+23][y+43]='\\'; + lienzo[x+23][y+44]='|'; + lienzo[x+23][y+45]='|'; + + //24 linea + lienzo[x+24][y+1]='`'; + for (int i=2; i<21; i++){ + lienzo[x+24][y+i]='-'; + } + lienzo[x+24][y+21]='~'; + for (int i=22; i<25; i++){ + lienzo[x+24][y+i]='_'; + } + lienzo[x+24][y+25]='~'; + for (int i=26; i<44; i++){ + lienzo[x+24][y+i]='-'; + } + lienzo[x+24][y+44]='`'; + lienzo[x+24][y+45]='`'; + + //for para imprimir + for (int i = 0; i < 55; i++) { + for (int j = 0; j < 55; j++) { + System.out.print(lienzo[i][j] + " "); + } + System.out.println(); + } + } + + public void guardarPaint3(){ + try { + archivo= new File ("Libro.txt"); + fw = new FileWriter(archivo); + bw = new BufferedWriter(fw); + + bw.write(" _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _"); + bw.write("\n. - / | \\ / | \\ - ."); + bw.write("\n| | | | | | | | |"); + bw.write("\n| | | | H O L A | M U N D O ; | | | |"); + bw.write("\n| | | | - - = = * = = - - - - = = * = = - | | | |"); + bw.write("\n| | | | | | | | |"); + bw.write("\n| | | | | | | | |"); + bw.write("\n| | | | | | | | |"); + bw.write("\n| | | | | | | | |"); + bw.write("\n| | | | | | | | |"); + bw.write("\n| | | | | | | | |"); + bw.write("\n| | | | | | | | |"); + bw.write("\n| | | | | | | | |"); + bw.write("\n| | | | | | | | |"); + bw.write("\n| | | | | | | | |"); + bw.write("\n| | | | | | | | |"); + bw.write("\n| | | | | | | | |"); + bw.write("\n| | | | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | | | |"); + bw.write("\n| | \\ = = = = = = = = = = = = = = = = = = \\ | \\ = = = = = = = = = = = = = = = = = = \\ | |"); + bw.write("\n` - - - - - - - - - - - - - - - - - - - ~ _ _ _ ~ - - - - - - - - - - - - - - - - - - ` `"); + + + bw.flush(); + fw.close(); + System.out.println("Un libro AsciiArt ha sido guardado.\n"); + + } catch (IOException e){ + System.out.println("Error e/s: "+e.getMessage()); + } + } +} + + + + +