# Search:

Type: Posts; User: hiimjoey11

1. ## Thread: JAVA MAGIC SQUARE

by hiimjoey11
Replies
11
Views
10,527

### Re: JAVA MAGIC SQUARE

public static int [][] reverseDiagonal(int arrayReverse[][]) {
int s=0;
int temp,temp1;

for (int row = 0; row < 4/2; row++){
temp=arrayReverse[row][row];
...
2. ## Thread: JAVA MAGIC SQUARE

by hiimjoey11
Replies
11
Views
10,527

### Re: JAVA MAGIC SQUARE

I think i am on the right track. But it isn't working right. this is what i have so far:

public static int [][] reverseDiagonal(int arrayReverse[][]) {
int s=0;
int temp;
...
3. ## Thread: JAVA MAGIC SQUARE

by hiimjoey11
Replies
11
Views
10,527

### Re: JAVA MAGIC SQUARE

Ah worked perfect thanks. Now part c says: Write a method reverseDiagonal that revers both diagonals of a two-dimensional array. For example, if the two-dimensional array is as show in part (b),...
4. ## Thread: JAVA MAGIC SQUARE

by hiimjoey11
Replies
11
Views
10,527

### Re: JAVA MAGIC SQUARE

Yeah in my code as posted above i tried this :

public static String matricize(int arrayB[], int arrayC[][]) {
for(int i=0;i<4;i++) {
for(int j=0;j<4;j++) {
...
5. ## Thread: JAVA MAGIC SQUARE

by hiimjoey11
Replies
11
Views
10,527

### Re: JAVA MAGIC SQUARE

Good point. Sorry about that. Here are the directions Magic Square:
a. Write a method createArithmeticSeq that prompts the user to input two numbers, first and diff. The method then creates a...
6. ## Thread: JAVA MAGIC SQUARE

by hiimjoey11
Replies
11
Views
10,527

### JAVA MAGIC SQUARE

Thanks in advance! I have been working on this for hours and can't seem to get it right. I added the directions as an attachment. I can't seem to get B working. any ideas as to how to fix it?...
7. ## Thread: Straight and Straight Flush?!?!

by hiimjoey11
Replies
1
Views
1,907

### Straight and Straight Flush?!?!

I am trying to make a program that deals hands in poker. I am trying to make the straight and straight flush, but can't fix the little bugs. If anyone could help me I would greatly appreciate it....