As it happened I tried putting the revised code in a method and it worked.
Type: Posts; User: Goldfinch
As it happened I tried putting the revised code in a method and it worked.
I'm using Netbeans 7.1, it allows me to run the program until it breaks. It looks like Netbeans doesn't think there are any compile errors, just runtime errors. The program seems to execute the first...
I didn't want to dump the whole thing on anyone because I thought It would be better if I posted more manageable pieces, but I'm including the entire file here just in case it helps. Unfortunately,...
I tried that out, and changed the code to something simpler:
Rank[] rankArray = new Rank[13];
for(int i=0; i<rankArray.length; i++){
rankArray[i]= new Rank(i);
...
Well here's the whole class:
class Rank{
public Rank(){//initializes new instance
}
// Item 1: a private static array of Strings and initialize it to...
that reminds me, I did forget to explain my objective, this is just the relevant code from a larger program and I guess I didn't include the comment line. Here is an update of the code to reflect the...
Hi,
I keep getting a static overflow error, but I'm puzzled about how to fix it.
public static Rank[] createRankArray(){
Rank[] rankArray= new Rank[13];
...