ok so I modified the method of reading the file into this
public static void readFile(String[][] words, String fileName)throws IOException
{
Scanner input = new...
Type: Posts; User: Hayfield
ok so I modified the method of reading the file into this
public static void readFile(String[][] words, String fileName)throws IOException
{
Scanner input = new...
Ok now I get the idea
so I have this piece of code that counts the number of rows
public static int getFileSize(String fileName)throws IOException
{
Scanner input =...
---------------------------------------------------
this goes into the first row
the first character goes into the first column ... the second character goes into the second column .. until the...
I want the characters in the text files to go into the 2D array ..
for example, the first character in the first line goes into the first column and the first row of the array
like at list1[0][0] goes "-"
and like at list1[20][25] goes "*"
and it goes on in this way
I want to input the text file into an array of [26][51] dimensions
The first text file name is "pattern1.txt"
and this is its content
---------------------------------------------------
---------------------------------------------------...
Hello, this is my first post in this forum. I am a beginner in Java and now I am working on programming Comney's game of life ...
So I started off by writing the initial patterns in text files and...