Skip to main content
9 events
when toggle format what by license comment
Oct 16, 2010 at 20:10 comment added andersoj @WM: See my answer above for a fully-working, oo'ified version
Oct 16, 2010 at 20:02 comment added andersoj @WM: You're also coping with some weirdness -- your getTranspose() method is referring directly to the static numbers rather than the argument.
Oct 16, 2010 at 19:59 comment added andersoj @WM, as pointed out in my answer, you still have a bug in your constructor -- you need this.numbers = ... or you're just setting the argument numbers to something. The NPE probably comes from this.
Oct 16, 2010 at 19:58 comment added andersoj @WM: Can you update above to show exactly what code is giving you NPE?
Oct 16, 2010 at 19:42 comment added W M but in this way when i run the program it gives me the following: java.lang.NullPointerException:null.... any ideas..??
Oct 16, 2010 at 16:48 comment added codaddict yes, you can do that if all your rows have same number of columns.
Oct 16, 2010 at 16:45 comment added W M as doing that //rows = numbers.length; //colms = numbers[0].length;
Oct 16, 2010 at 16:32 history edited codaddict CC BY-SA 2.5
added 110 characters in body
Oct 16, 2010 at 16:27 history answered codaddict CC BY-SA 2.5