Search:

Type: Posts; User: newmanj8

1. Thread: Need help converting from int to double

by newmanj8
Replies
7
Views
483

Re: Need help converting from int to double

For example, this code takes the numbers that are given, -12,-5,-20,-67 then I put them in order from -67 to -5, then when I test this the program goes through and checks to make sure the sorted...
2. Thread: Need help converting from int to double

by newmanj8
Replies
7
Views
483

Re: Need help converting from int to double

If I have the int array and want to have decimals be seen and come back as a decimal how can I write a method that will notice decimals?
3. Thread: Need help converting from int to double

by newmanj8
Replies
7
Views
483

Re: Need help converting from int to double

I would but Im not allowed to change the class for the project so i can't change the array, is there a way I can cast double into the method I tried it this way but got errors..

int[]...
4. Thread: Need help converting from int to double

by newmanj8
Replies
7
Views
483

Need help converting from int to double

I know you have to cast in double but I don't know how to put it I tried everything... so i think, the program sorts numbers from an arraylist and then checks to see if your right in the int[] sorted...
5. Thread: Need a win aspect in connect four game

by newmanj8
Replies
5
Views
459

Re: Need a win aspect in connect four game

{
if (checkWin() == true) {
gameOn = false;
textFont(font, 80);
if (winner == 4) {
6. Thread: Need a win aspect in connect four game

by newmanj8
Replies
5
Views
459

Re: Need a win aspect in connect four game

The code sets up a connect four board with a mouse listener that when clicked highlights the empty spaces red or black you have to win four chips in a row vertically horizontally or diagonally. I use...
7. Thread: Need a win aspect in connect four game

by newmanj8
Replies
5
Views
459

Need a win aspect in connect four game

I want to have the game stop when you connect four and have the screen say what color one and the click to reset. This is what I have so far.

<color yellow = color (255, 217, 0);
color red =...

by newmanj8
Replies
7
Views
357

Re: Connect Four Game need help pleaseee!!

The code is all one class, which makes up the game which is fully functional, I just wanted help with putting movement in and rather then clicking on the board and having the chip appear I wanted...

by newmanj8
Replies
7
Views
357

Re: Connect Four Game need help pleaseee!!

The program that I am using is called Processing which is a little different then your standard java coding with eclipse.

by newmanj8
Replies
7
Views
357

Re: Connect Four Game need help pleaseee!!

int count = 0;
int rows = 6;
int cols = 7;
int winner = 0;
CircleButton[][] grid = new CircleButton[cols][rows];
int[][] gridChecker = new int[cols][rows];
boolean locked = false;
boolean...

by newmanj8
Replies
7
Views
357

Connect Four Game need help pleaseee!!

I have to make a processing game, I got my game to fully work but I want to add some motion into it I want to have the chips when clicked to start on the top of the board and drop down to the bottom....
12. Thread: New 2 Java Programming Forum

by newmanj8
Replies
3
Views
318

New 2 Java Programming Forum

Im a 22 year old IT student having diffficulty with Java coding.
Results 1 to 12 of 12