Search:

Type: Posts; User: hiimjoey11

Search: Search took 0.64 seconds.

  1. 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. 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. 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. 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. 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. 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. 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....
  8. Thread: DATE.java!

    by hiimjoey11
    Replies
    1
    Views
    796

    DATE.java!

    It compiles fine if the user inputs mm/dd/yyyy, but if they input m/d/yyyy it wont work. Any ideas? I am going to upload the directions that I was given. Code is all done just a couple errors : (
    ...
Results 1 to 8 of 8