// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // Construct a facelet cube from a string FaceCube(String cubeString) { for (int i = 0; i < cubeString.length(); i++) f[i] = Color.valueOf(cubeString.substring(i, i + 1)); }
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ FaceCube() { String s = "UUUUUUUUURRRRRRRRRFFFFFFFFFDDDDDDDDDLLLLLLLLLBBBBBBBBB"; for (int i = 0; i < 54; i++) f[i] = Color.valueOf(s.substring(i, i + 1)); }