Click here to Skip to main content
15,908,931 members
Home / Discussions / Java
   

Java

 
GeneralRe: to Java or not to Java Pin
Electronic7521-Aug-08 17:24
Electronic7521-Aug-08 17:24 
GeneralRe: to Java or not to Java Pin
toxcct25-Aug-08 21:21
toxcct25-Aug-08 21:21 
GeneralRe: to Java or not to Java Pin
Electronic7526-Aug-08 3:56
Electronic7526-Aug-08 3:56 
GeneralRe: to Java or not to Java Pin
toxcct26-Aug-08 4:28
toxcct26-Aug-08 4:28 
Questionhelp please Pin
memo26014-Aug-08 2:24
memo26014-Aug-08 2:24 
QuestionHow do I create an array of objects and use the objects methods? Pin
Member 336349812-Aug-08 23:07
Member 336349812-Aug-08 23:07 
AnswerRe: How do I create an array of objects and use the objects methods? Pin
newtypebao13-Aug-08 15:55
newtypebao13-Aug-08 15:55 
AnswerRe: How do I create an array of objects and use the objects methods? Pin
toxcct13-Aug-08 22:26
toxcct13-Aug-08 22:26 
Member 3363498 wrote:
Exception in thread "main" java.lang.NullPointerException
at aub.main(aub.java:20)


That was pretty clear, wasn't it ?

A NullPointerException means you are dereferencing a pointer which contains null rather than a valid address. Basically, it means that the Reference has not been initialised, or that no object is created.

As already suggested, you then have to create a new aub instance in each cell of your array, because creating an array doesn't create the objects itself. It only reserve the space for the pointers to point to a laterly allocated instance of the aub class.


AnswerRe: How do I create an array of objects and use the objects methods? Pin
Asran.Deng28-Aug-08 17:52
Asran.Deng28-Aug-08 17:52 
QuestionHelp Required Pin
kash_jack11-Aug-08 2:09
kash_jack11-Aug-08 2:09 
Questiona problem about drools Pin
newtypebao6-Aug-08 17:11
newtypebao6-Aug-08 17:11 
AnswerRe: a problem about drools Pin
Reagan Conservative20-Aug-08 10:03
Reagan Conservative20-Aug-08 10:03 
AnswerRe: a problem about drools Pin
BlackWolvix21-Aug-08 0:41
BlackWolvix21-Aug-08 0:41 
AnswerResizing dynamically JTable rows with setRowHeight(int row, int height) and TableCellRenderer not working [modified] Pin
John XXIII5-Aug-08 13:42
John XXIII5-Aug-08 13:42 
QuestionScrolling Banner with message in opposite direction Pin
hisuman1004-Aug-08 19:11
hisuman1004-Aug-08 19:11 
AnswerRe: Scrolling Banner with message in opposite direction Pin
Reagan Conservative20-Aug-08 10:17
Reagan Conservative20-Aug-08 10:17 
QuestionIP Discovery protocol Pin
Smacky31131-Jul-08 6:55
Smacky31131-Jul-08 6:55 
QuestionNeed someone to test a Java application on Mac OS X Pin
MicealG29-Jul-08 8:55
MicealG29-Jul-08 8:55 
QuestionNetbeans data entry Pin
aecordoba23-Jul-08 10:44
aecordoba23-Jul-08 10:44 
AnswerRe: Netbeans data entry Pin
BlackWolvix24-Jul-08 23:29
BlackWolvix24-Jul-08 23:29 
GeneralRe: Netbeans data entry Pin
aecordoba29-Jul-08 6:36
aecordoba29-Jul-08 6:36 
GeneralRe: Netbeans data entry Pin
BlackWolvix1-Aug-08 0:13
BlackWolvix1-Aug-08 0:13 
QuestionJava GUI help [modified] Pin
BlackWolvix22-Jul-08 9:17
BlackWolvix22-Jul-08 9:17 
AnswerRe: Java GUI help Pin
toxcct28-Jul-08 0:30
toxcct28-Jul-08 0:30 
GeneralRe: Java GUI help Pin
BlackWolvix28-Jul-08 4:07
BlackWolvix28-Jul-08 4:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.