Search:

Type: Posts; User: hiimjoey11

Search: Search took 0.07 seconds.

  1. Replies
    11
    Views
    12,716

    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. Replies
    11
    Views
    12,716

    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. Replies
    11
    Views
    12,716

    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. Replies
    11
    Views
    12,716

    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. Replies
    11
    Views
    12,716

    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. Replies
    11
    Views
    12,716

    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?...
Results 1 to 6 of 6