Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String r1c1 = jTextField3.getText();
- String r1c2 = jTextField4.getText();
- String r1c3 = jTextField1.getText();
- String r1c4 = jTextField2.getText();
- //r = row c = column
- for(int q = 0; q < 4; q++)
- {
- if(q == 0)
- {
- colors[0] [q] = r1c1;
- }
- if(q == 1)
- {
- colors[0] [q] = r1c2;
- }
- if(q == 2)
- {
- colors[0] [q] = r1c3;
- }
- if(q == 3)
- {
- colors[0] [q] = r1c4;
- }
- }
- for(int i = 0; i < 4; i++){
- String s = "";
- if(solution[i].equals(colors[0][i])){
- //System.out.println("True");
- s = s+ "1";
- jLabel2.setText(s);
- }
- }
Add Comment
Please, Sign In to add comment