• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Why the getmem_id is not working for this linked list Java program?

 
Greenhorn
Posts: 22
Netbeans IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does the program / classes compile?

Henry
 
Nora Morris
Greenhorn
Posts: 22
Netbeans IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Henry Wong wrote:Does the program / classes compile?

Henry




On this particular code, getmem_id() is not working. I developing a library management system here. but i'm confused why that getmem_it is not working. I need to get member id to proceed my system to next level.
 
Saloon Keeper
Posts: 15529
364
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to CodeRanch!

ItDoesntWorkIsUseless.

Please tell us what you did to compile and run the code, what output you expected and what output you got. If you got error messages, post them and any stack traces.
 
Rancher
Posts: 5008
38
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

getmem_id() is not working


Please explain.  If there are compiler errors, copy the full text and paste it here.
If the results are not what you want, show the current results and describe what the desired results should be.
 
Nora Morris
Greenhorn
Posts: 22
Netbeans IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:Welcome to CodeRanch!

ItDoesntWorkIsUseless.

Please tell us what you did to compile and run the code, what output you expected and what output you got. If you got error messages, post them and any stack traces.


Norm Radder wrote:

getmem_id() is not working


Please explain.  If there are compiler errors, copy the full text and paste it here.
If the results are not what you want, show the current results and describe what the desired results should be.



I want to get the member id. that's why i used getmem_id() method. but in system it showing red underlined error. how do I implement the get method to retrieve the member id while user entering on the keyboard
 
Stephan van Hulst
Saloon Keeper
Posts: 15529
364
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When you build an application with such an error, it tells you the reason. Use your editor to build the application and post the output.
 
Rancher
Posts: 89
13
Scala Eclipse IDE MySQL Database Tomcat Server Chrome Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Nora,

Welcome to the ranch!

So you're getting an error that says this method doesn't exist right? Let me ask a couple of questions. Is the Node class you create a custom class you or someone else working on the project has built? If so, do you have access to the source code? Does it contain the getmem() method?

-Zach
 
Rancher
Posts: 4801
50
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you post the Node class?
 
Nora Morris
Greenhorn
Posts: 22
Netbeans IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Dave Tolls wrote:Can you post the Node class?


Zach Rode wrote:Hey Nora,

Welcome to the ranch!

So you're getting an error that says this method doesn't exist right? Let me ask a couple of questions. Is the Node class you create a custom class you or someone else working on the project has built? If so, do you have access to the source code? Does it contain the getmem() method?

-Zach


Stephan van Hulst wrote:When you build an application with such an error, it tells you the reason. Use your editor to build the application and post the output.



Thank you so much helping me. I've the solution for that!
 
Saloon Keeper
Posts: 27807
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Incidentally, you're using a C/C++ coding style. In Java, the convention for names is camelCase. So methods are usually named something like getMemId(). Java itself actually doesn't care, but the people and the software tools that work with Java can be confused.
 
Nora Morris
Greenhorn
Posts: 22
Netbeans IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Holloway wrote:Incidentally, you're using a C/C++ coding style. In Java, the convention for names is camelCase. So methods are usually named something like getMemId(). Java itself actually doesn't care, but the people and the software tools that work with Java can be confused.



Oh yeah, Thank you so much correcting it.
 
Goodbye moon men. Hello tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic