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

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Doing a vlookup in java" Watch "Doing a vlookup in java" New topic

Doing a vlookup in java

Sue Aside

Joined: Jan 11, 2010
Posts: 2

I am having problem with my program what I am trying to do is to something similar to a vlookup in excel that is compare the value of checkItem and return the corresponding itemDesc. the code works well if a valid item is entered but i am not getting the desired result for when and invalid item code is entered.

Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

In the if-statement you use an assignment .

"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Sue Aside

Joined: Jan 11, 2010
Posts: 2
thanks I will try this
I agree. Here's the link:
subject: Doing a vlookup in java