Anyway, I will read up on that - I don't mean to bother.
Thanks for all your help!!
--- Update ---
Then I don't know yet - I will have to figure that out.
When it something is already in...
Type: Posts; User: Fan Zhendong
Anyway, I will read up on that - I don't mean to bother.
Thanks for all your help!!
--- Update ---
Then I don't know yet - I will have to figure that out.
When it something is already in...
Ok, I will look into that...
So I can just create another method any time and use it for something specific (in this case, whenever I want to print the Grid/ array)?
Oh ok, I understand.
But how do I incorporate that in my initial code and print the "changed" array?
--- Update ---
First I would add this:
O ok, I think I understand. Yeah rows (left, right) and columns (up, down).
Anyway, what I mean should happen is like this for example: (Ignore the awkward spacing - just tried to make it easier...
Say the user input is "4"
That means they are choosing the row in which the R will be placed. The program should then automatically place R in the bottom column of that row (like you drop a disc...
I mean Row (horizontal/ above)
I don't know how to place "R" into the array at all(or to print the array). I have tried a few things, but nothing worked. I am very new to programming...
If I understand your question right... yeah, that was a bit vague of me. It is like the game Connect 4. The user input refers to the Row (horisontal). The user picks the row in which the "R" will...
//THIS IS THE CODE I HAVE SO FAR:
import java.util.Arrays;
import java.util.Scanner;
import java.io.File;
import java.io.FileWriter;
import java.awt.event.KeyEvent;
import...
//THIS IS THE CODE I HAVE SO FAR:
import java.util.Arrays;
import java.util.Scanner;
import java.io.File;
import java.io.FileWriter;
import java.awt.event.KeyEvent;
import...