hello friends, I write code. there is a wrong but I don't find.. Could you help me?
import javax.swing.JOptionPane; public class assignment { public static void main(String[] args) { String person = ""; int computer; int scorePerson = 0, scoreComputer = 0; String Rock = "", Paper = "", Scissiors = ""; computer = (int) (Math.random() * 3); JOptionPane.showMessageDialog(null, "Game start" + "\nPlease choose any one"); String computer1 = String.valueOf(computer); while(scoreComputer<5 || scorePerson<5) { person = JOptionPane.showInputDialog("scoreComputer : " + scoreComputer + "\nscorePerson : " + scorePerson + "\n1.Rock " + "\n2.Paper " + "\n3.Scissors"); switch(computer){ case 0 : JOptionPane.showMessageDialog(null, "Rock"); computer1 = Rock; break; case 1 : JOptionPane.showMessageDialog(null, "Paper"); computer1 = Paper; break ; case 2 : JOptionPane.showMessageDialog(null, "Scissiors"); computer1= Scissiors; break; } for(int i = 0 ; i<5;++i) { if (person == computer1) { JOptionPane.showMessageDialog(null, "Scoreless"); } else { if ((person.equals(Rock) && computer1.equals(Paper)) || (person.equals(Paper) && computer1.equals(Scissiors)) || (person.equals(Scissiors) && computer1.equals(Rock))) { JOptionPane.showMessageDialog(null, "Computer is won"); scoreComputer++; break; } else JOptionPane.showMessageDialog(null, "Person is won"); scorePerson++; break; } } while (scoreComputer == 5 || scorePerson == 5) { if (scorePerson < scoreComputer) { JOptionPane.showMessageDialog(null, "End of match. Computer is won"); } else if (scoreComputer == scorePerson) { JOptionPane.showMessageDialog(null, "End of match. Scoreless"); } else JOptionPane.showMessageDialog(null, "End of match. Person is won"); break; } } } }