General

Tech

Calling all Java programmers

In general, how do you go about printing certain characters.
Let's say for example, I wanted my JAVA program to print the images of a thumb or a fish. How would I go about doing this?

January 31, 2013

2 Comments • Newest first

Symbolics

You could either use ASCII art and print each line out or you could import (basil censor) java.awt.Color and java.awt.Graphics classes and draw the thumb or fish, but it will be much more complicated. However if you use the 2 imported classes, you could get a picture with colours. It's up to you.

Edit: Unless you're saying about opening an external image file.

Reply February 2, 2013 - edited
hairamoose

System.out.println("Whatever you want here?"
you can use that to print till you make ASCII art.

are you wanting to do that or do you want to actually display pictures like a .png onto a gui

Reply January 31, 2013 - edited