yes . it's part of a slot machine simulator. it's supposed to compare the images, which are displayed on each slot(i use JLabel to display them). If it's the same image in each slot then execute some code.
i'm an idiot it had nothing to do with the syntax. I just should have placed the '&&' statement before the '||' one.It was such a bloody simple thing!!!!!
thanks for trying to help