Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (solution[i].equals(colors[0][i])) {
- s = "1" + s;
- } else {
- for (int j = 0; j < 4; j++) {
- if (colors[0][j].equals(solution[j])) {
- inSolution = true;
- if (inSolution == true) {
- s = s + "0";
- inSolution = false;
- System.out.println("hi");
- } else {
- s = s + "2";
- System.out.println("bye");
- }
- }
- }
Add Comment
Please, Sign In to add comment