Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Klarissa Schmidt   on Oct 06 In Java Category.

  
Question Answered By: Rene Sullivan   on Oct 06

wat I understand is that your input1 & input2 are strings & making an "=="
comparator won't work here as it compares refrences rather than the content.
better use input1.equals("r") && input2.equals("g"). guess shud work.

Share: 

 

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

 


Tagged: