i add new instance of an own class-object for every element in an array.
every instance gets a string-property (.wort)
like instance[3].wort="test"
what i want is: if instance[8] also get "test" as wort to remove instance 8 or at least change the poperty to "double" or whatever. i don't know how to do this. maybe it is easy to understand what i'am talking about if you have a look at the code?
the final result should count how often a words is used in the txt file.
blablabla yust have a look
it would be graet if you could give me a hint..
hi all,
i'am pretty new to processing but have programmed somethings in as3 already. so i'm kind of a semi noob.
but i think my problem should be easy to solve:
i made a class called sucher with two parameters and want to create new instances of it in a for-loop
when i play the sketch i get a NullPointerException - Error.
do you know why?
if i try to instance like
textSucher[0]=new sucher("xyz",1);
->same problem
sucher test = new sucher("xyz",1);
-> works fine. there is maybe somehow a problem with the deklaration of the array?!