Search:

Type: Posts; User: Charlie

Search: Search took 0.20 seconds.

  1. Thread: Crazy array

    by Charlie
    Replies
    18
    Views
    2,672

    Re: Crazy array

    Extending classes can only be done with one class per class. It only means "this class will inherit all the methods from the class it extends". What you usually want when you extend a JFrame is to...
  2. Thread: Crazy array

    by Charlie
    Replies
    18
    Views
    2,672

    Re: Crazy array

    Print all the elements out of one dimension and then swap line when you hit the end, if you loop over it I'd say using System.print(variable) using the array element and if it has no more elements...
  3. Thread: Crazy array

    by Charlie
    Replies
    18
    Views
    2,672

    Re: Crazy array

    Dont get the puzzle n all, but it runs fine for me when I put {'s on the second for loop :S.





    import java.io.*;
    import java.util.*;

    public class Main
  4. Thread: Crazy array

    by Charlie
    Replies
    18
    Views
    2,672

    Re: Crazy array

    Also, if you just use a while(j < 4) and then dont add to j, it will continue forever if it does enter the loop.
    So I'm thinking either you're thinking of an IF or a FOR here.

    I think your...
Results 1 to 4 of 4