This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .idea | |
| /target | |
| *.iml | |
| /lib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.javarush.games.minesweeper; | |
| public class GameObject { | |
| public int x; | |
| public int y; | |
| public boolean isMine; | |
| public int countMineNeighbors; | |
| public boolean isOpen; | |
| public boolean isFlag; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.javarush.task.task34.task3410.controller; | |
| import com.javarush.task.task34.task3410.model.Direction; | |
| import com.javarush.task.task34.task3410.model.GameObjects; | |
| import com.javarush.task.task34.task3410.model.Model; | |
| import com.javarush.task.task34.task3410.view.View; | |
| public class Controller implements EventListener { | |
| private View view; | |
| private Model model; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.javarush.task.task26.task2609; | |
| /* | |
| Распределение элементов по корзинам с собственным локом | |
| */ | |
| public class Solution { | |
| private static final int NUMBER_LOCKS = 12; | |
| private final Node[] buckets; | |
| private final Object[] locks; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.javarush.task.task24.task2411; | |
| public class C implements JustAnInterface { | |
| public C() { | |
| System.out.print("C"); | |
| B localB = B; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.javarush.task.task24.task2410; | |
| public interface Iterator { | |
| Iterator next(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.javarush.task.task24.task2408; | |
| import java.util.Date; | |
| /* | |
| В работе вам иногда будет нужно закастить класс к какому-нибудь другому классу, не интерфейсу :))) | |
| Класс DogPet использует 2 класса - SuperDog и Dog, разберись с getName в классе DogPet | |
| Так намного лучше, чем Copy+Paste! | |
| */ | |
| public class Dog implements Pet { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.javarush.task.task24.task2407; | |
| /* | |
| В работе вам иногда будет нужно закастить класс к какому-нибудь интерфейсу (тут Sayable), | |
| который не реализован в текущем классе | |
| */ | |
| public class Cat implements Pet { | |
| private String name; | |
| public Cat(String name) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.javarush.task.task24.task2405; | |
| public interface Action { | |
| void someAction(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.javarush.task.task24.task2404; | |
| public interface HasHeight { | |
| double getHeight(); | |
| } |
NewerOlder