This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

comparing using arrays in java

 
Abhradeep Banerjee
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to compare what the user types in to check if it is the same as whats in the array
Can anyone help me
i get a nullvalue problem is to do with the method on methodfindcarmodel

thanks
Trendnet18
//car.java
//Database.java





 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does this do?
 
fred rosenberger
lowercase baba
Bartender
Posts: 12086
29
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your job, when you post here asking for help, is to do everything you can to make it easy for people to help you. You state "i get a nullvalue problem is to do with the method on methodfindcarmodel "

and yet, there is no "methodfindcarmodel" or "findcarmodel" in your code. That makes it near impossible for someone to help you.

Please read some of our FAQ on HowToAskQuestionsOnJavaRanch, including TellTheDetails, AvoidRedHerrings, and IsolateTheProblem.
 
Abhradeep Banerjee
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wouter Oet wrote:What does this do?


its supposed to retrive the info from Model then go back to carui and compare
 
Abhradeep Banerjee
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have changed the findCarByModel still cant get it to work... Car.java is the same code as my previous post

Database.java --

 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic