Jump to content

Array element getting null itself

- - - - -

  • Please log in to reply
1 reply to this topic

#1
toto_7

toto_7

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 295 posts
Hello,
i have 2D array and initialise it with nested loop. More specific in place array[11][2] initialise it as element of another class i created. Now if i use system.out to print this place after the end of loop, content is ok, but if i print it in a method i created is null!!! Im not doing anything in that place in that method, just system.out. Any idea???
thank you

EDIT: Noticed that in method all elements of the array are NULL.Why? when that happens?

"Programming is like sex. One mistake and you have to support it for the rest of your life."

-Michael Sinz

#2
ZekeDragon

ZekeDragon

    Writes binary right handed and hex left handed

  • Moderators
  • 2,103 posts
That sounds unusual, could you provide a code example that shows the problem? Sometimes when distilling code you're working on into an example, you find the problem on your own. :)
Wow I changed my sig!




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users