Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void turn(int i) {
- if (this.swiches[i] == 0) {
- this.swiches[i] = 1;
- }
- else {
- this.swiches[i] = 0;
- }
- if (this.lamp == 0) {
- this.lamp = 1;
- }
- else {
- this.lamp = 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement