Guest User

Untitled

a guest
May 23rd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. if (solution[i].equals(colors[0][i])) {
  2. s = "1" + s;
  3. } else {
  4.  
  5. for (int j = 0; j < 4; j++) {
  6. if (colors[0][j].equals(solution[j])) {
  7.  
  8. inSolution = true;
  9.  
  10.  
  11. if (inSolution == true) {
  12. s = s + "0";
  13. inSolution = false;
  14. System.out.println("hi");
  15. } else {
  16. s = s + "2";
  17. System.out.println("bye");
  18.  
  19. }
  20.  
  21. }
  22.  
  23. }
Add Comment
Please, Sign In to add comment