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...
Type: Posts; User: Charlie
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...
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...
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
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...