Question: Printing different colored squares to the screen based on characters read from a text file? You have a .txt fie named List. This file contains
Printing different colored squares to the screen based on characters read from a text file?
You have a .txt fie named List. This file contains the following (without quotes): "0, 1, 0, 0, 1". Your Java program should parse these in and print the corresponding colors for each character:
0 = blue
1 = red
Make sure the squares are a distance away from each other so they don't go ontop of each other. I understand how to create/open/write to a file but not how to put it to graphics as this is asking. :/
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
