[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

How To ASCII Manipulation with 2D Arrays using a .txt file (JAVA)

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 7
Thread images: 1

File: download.jpg (6KB, 300x168px) Image search: [Google]
download.jpg
6KB, 300x168px
The homework with the .txt file: http://www.garfieldcs.com/2014/01/2d-arrays-of-ascii-images/

The code I have so far : https://gist.github.com/anonymous/81c78447144a6e94ba8fda2ad1fb603e

How do I display to image using a 2d array?
>>
>>265095
maybe at /g/ dpt
>>
>>265095
Just iterate over the 2d array and print out each character, once you reach the end of a row print out a newline character. if you want it flipped, just go over in reverse line order.
>>
>>265112
error popped up http://prntscr.com/e7kj2y
>>
>>265114
1. replace System.out.println(image[x][y]); with System.out.println(image[y][x]);
2. Add System.out.println(); to line 22
>>
>>265124
Sorry i ment replace System.out.println(image[x][y]); with System.out.print(image[y][x]);
>>
>>265124
thank u so much
Thread posts: 7
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.