This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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: 12185
34
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 --

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic