• Post Reply Bookmark Topic Watch Topic
  • New Topic

Method return null.  RSS feed

 
Gustavo Siqueira
Ranch Hand
Posts: 97
C++ Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See my class:






Because the getDataProtest method, return as null ?
 
John Jai
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gustavo,

I am unclear on the question, but guess you ask why the getDataProtest() is returning null. The posted code did not show how the getDataProtest() method is called.

Class names should start with capital letters, so please read these coding conventions - JavaRanch style guide

Also try to avoid too many line breaks and follow correct indentations.
 
Matthew Brown
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Gustavo. What's your question? No point us trying to guess.
 
Naishadh Parmar
Ranch Hand
Posts: 95
C++ Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gustavo,

You have never called the getDataProtest() method is never called and, as you can see in the earlier posts, no one got your question???

Note: Class names always start with capital letters which, in your case, are not
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!