Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doing a vlookup in java

 
Sue Aside
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



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.

Help
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the if-statement you use an assignment .

 
Sue Aside
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks I will try this
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic