Ufo Humanoidi

Greenhorn
+ Follow
since Mar 07, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ufo Humanoidi

That's in another class, witch has been already given. I don't have permission to make changes to that class.

Edit: And the upper code is not a complete program, there are more methods in overall.
[ March 07, 2006: Message edited by: Ufo Humanoidi ]
16 years ago
I'm trying to use an array in my program but it always gives me NullPointerException. It think the exception refers that the array has only null values when I'm trying to give them a value. Take a closer look at the code:




And so on.

The exact message I get looks like this:
Exception in thread "main" java.lang.NullPointerException
at Anagrammi.tarkastaTarkasti(Anagrammi.java:34)
at Anagrammitestaaja.teeTestit(Anagrammitestaaja.java:48)
at Anagrammitestaaja.main(Anagrammitestaaja.java:24)


What's going wrong. I had the same problem with another program too, but I solved it by creating a constant sized array (in other words the array size was defined by a constant, not variable).
16 years ago