• Post Reply Bookmark Topic Watch Topic
  • New Topic

null  RSS feed

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
some one please tell me the correct code....i'm trying to get my id but it displays null..i did n't understand why it shows null to me...i'm placing my code below
and my sub class

 
sujesh Katri
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i understood where i did mistake...i'm accessing farmal parameter that why it shows null.
 
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please note that you're using the "code" tags incorrectly - the two parts need to be around the code, not both before the code. you should have noticed that they have no effect on the code you posted. Please edit your post to correct that, and keep it in mind for the future. You can read up on how to use them correctly in http://www.coderanch.com/how-to/java/UseCodeTags.

As to your question, the statement "id = id;" is incorrect (as it is it does not the effect that you think it has).
 
Marshal
Posts: 56610
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done spotting your error
I have corrected the code tags for yu.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!