Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Adelisa Fischer   on Jun 28 In Java Category.

  
Question Answered By: Garai Chalthoum    on Jun 28

Change the line

if (answerColumns[2] == "YN") {

to

if ( answerColumns[2].equals( "YN" ) {

with == you are comparing the address value of objects
or the value of primatives.

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 


Tagged: