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.task2406; | |
| import java.math.BigDecimal; | |
| /* | |
| Наследование от внутреннего класса | |
| */ | |
| public class Solution { | |
| public class Building { | |
| public class Hall { |
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.task2401; | |
| public interface SelfInterfaceMarker { | |
| } |
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.task2413; | |
| import java.awt.event.KeyEvent; | |
| import java.util.ArrayList; | |
| /** | |
| * Главный класс игры | |
| */ | |
| public class Arkanoid { | |
| // ширина и высота |
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.task39.task3905; | |
| public enum Color { | |
| RED, | |
| ORANGE, | |
| YELLOW, | |
| GREEN, | |
| BLUE, | |
| INDIGO, | |
| VIOLET |
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.task22.task2211; | |
| import java.io.*; | |
| import java.nio.charset.Charset; | |
| /* | |
| Смена кодировки | |
| */ | |
| public class Solution { | |
| public static void main(String[] args) throws IOException { |
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.task23.task2309; | |
| import com.javarush.task.task23.task2309.vo.NamedItem; | |
| import com.javarush.task.task23.task2309.vo.User; | |
| import java.lang.reflect.ParameterizedType; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| public abstract class AbstractDbSelectExecutor<T extends NamedItem> { |
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.task23.task2311; | |
| /* | |
| Повторяем threads | |
| */ | |
| public class Solution { | |
| public final String name; | |
| public final String food; | |
| public final String sound; |
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.task23.task2310; | |
| /* | |
| Напряги извилины! | |
| */ | |
| public class Solution { | |
| private String name; | |
| Solution(String name) { | |
| this.name = 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.task23.task2308; | |
| /* | |
| Рефакторинг, вложенные классы | |
| */ | |
| public class Solution { | |
| public class ServerNotAccessibleException extends Exception { | |
| public ServerNotAccessibleException() { | |
| super(Constants.SERVER_IS_CURRENTLY_NOT_ACCESSIBLE); |
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.task23.task2304; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.Map; | |
| public class MockDB { | |
| private static final List<Solution.Task> FAKE_TASKS = new ArrayList<>(); | |
| private static final List<String> FAKE_NAMES = new ArrayList<>(); |