aspose file tools*
The moose likes Beginning Java and the fly likes comparing using arrays in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "comparing using arrays in java" Watch "comparing using arrays in java" New topic
Author

comparing using arrays in java

Abhradeep Banerjee
Ranch Hand

Joined: Dec 09, 2009
Posts: 71
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

Joined: Oct 25, 2008
Posts: 2700

What does this do?


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 10908
    
  12

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.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Abhradeep Banerjee
Ranch Hand

Joined: Dec 09, 2009
Posts: 71
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

Joined: Dec 09, 2009
Posts: 71

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

Database.java --

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: comparing using arrays in java
 
Similar Threads
Variable declaration
err get and set methods and scanner class / JOptionPane
Null Pointer Exception - ArrayList
how do i retrieve info from array?
array and setmethod